@entifix/i18n 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +22 -0
  2. package/package.json +3 -2
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # @entifix/i18n
2
+
3
+ The i18next binding. Every entifix package that renders copy ships its own catalogs; an application installs them once with `defineCatalogs` and composes the typed-key shape that makes a mistyped key a compile error.
4
+
5
+ See [the first thing you have to write](https://github.com/r10c-technologies/entifix#the-first-thing-you-have-to-write) — the type augmentation only an application can declare.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ pnpm add @entifix/i18n i18next
11
+ ```
12
+
13
+ ## Entry points
14
+
15
+ | Import | What it holds |
16
+ | ----------------------- | ------------------------------------------------------------------------------------------------ |
17
+ | `@entifix/i18n` | `defineCatalogs`, `createI18n`, `getServerTFor` |
18
+ | `@entifix/i18n/routing` | Locale negotiation and path helpers, with no i18next import — safe for an edge middleware bundle |
19
+
20
+ ---
21
+
22
+ Tier 2 (adapters) of entifix — a package depends only on its own tier or below. See [the tiers](https://github.com/r10c-technologies/entifix#the-tiers-and-what-you-are-allowed-to-install). MIT licensed.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@entifix/i18n",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
+ "description": "i18next binding: install each package's catalogs once, translate with typed keys, and negotiate a locale.",
4
5
  "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
@@ -60,7 +61,7 @@
60
61
  },
61
62
  "dependencies": {
62
63
  "@swc/helpers": "0.5.23",
63
- "@entifix/core": "0.1.0"
64
+ "@entifix/core": "0.1.1"
64
65
  },
65
66
  "peerDependencies": {
66
67
  "i18next": ">=26 <27"