@byline/i18n 4.7.0 → 4.9.0

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.
package/README.md CHANGED
@@ -4,7 +4,7 @@ Admin interface i18n primitives for Byline CMS — a translation registry, an IC
4
4
 
5
5
  This package is the *interface* axis of i18n (what language the admin UI renders in). The *content* axis (what languages your documents publish in) is a separate concern handled by `i18n.content` on the existing `BaseConfig`. The two are deliberately independent.
6
6
 
7
- For the full design — registration model, plugin extensibility surface, per-user persistence, future phases — see [`docs/07-internationalization/index.md`](../../docs/07-internationalization/index.md) at the repo root.
7
+ For the full design — registration model, plugin extensibility surface, per-user persistence, future phases — see [`docs/08-internationalization/index.md`](../../docs/08-internationalization/index.md) at the repo root.
8
8
 
9
9
  ## Install
10
10
 
@@ -156,7 +156,7 @@ Tier order: `preferred → cookie → acceptLanguage → defaultLocale`. Every s
156
156
 
157
157
  ## What's *not* here (yet)
158
158
 
159
- - **Lazy locale loading.** Locales currently bundle eagerly. With more than ~5 locales, switching to async loaders earns its complexity; see Phase 3 in [`docs/07-internationalization/index.md`](../../docs/07-internationalization/index.md).
159
+ - **Lazy locale loading.** Locales currently bundle eagerly. With more than ~5 locales, switching to async loaders earns its complexity; see Phase 3 in [`docs/08-internationalization/index.md`](../../docs/08-internationalization/index.md).
160
160
  - **Authoring-time metadata** (per-key descriptions, plural hints, deprecation markers). Phase 4.
161
161
  - **RTL admin layout.** Phase 5. Need a community-translated RTL locale first to surface the real list of CSS breakages.
162
162
  - **Inline translation editing** (CMS-as-translation-tool). Deliberately out of scope.
package/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  * Admin bundles (`adminTranslations(...)`, the English bundle) live
23
23
  * at `@byline/i18n/admin`.
24
24
  *
25
- * See `docs/07-internationalization/index.md` for the architecture.
25
+ * See `docs/08-internationalization/index.md` for the architecture.
26
26
  */
27
27
  export { createFormatter } from './formatter.js';
28
28
  export { mergeTranslations } from './merge.js';
package/dist/types.d.ts CHANGED
@@ -48,7 +48,7 @@ export type NamespaceTranslations = Readonly<Record<MessageKey, string>>;
48
48
  * files, published as standalone npm packages, and round-tripped
49
49
  * through any translation tool. Authoring-time metadata
50
50
  * (descriptions, plural hints, deprecation markers) is a deferred
51
- * Phase 4 surface; see `docs/07-internationalization/index.md`.
51
+ * Phase 4 surface; see `docs/08-internationalization/index.md`.
52
52
  */
53
53
  export type TranslationBundle = Readonly<{
54
54
  [locale: LocaleCode]: Readonly<{
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "type": "module",
5
5
  "license": "MPL-2.0",
6
- "version": "4.7.0",
6
+ "version": "4.9.0",
7
7
  "engines": {
8
8
  "node": ">=20.9.0"
9
9
  },
@@ -55,8 +55,7 @@
55
55
  "classnames": "^2.5.1",
56
56
  "intl-messageformat": "^11.2.12",
57
57
  "negotiator": "^1.0.0",
58
- "npm-run-all": "^4.1.5",
59
- "@byline/ui": "4.7.0"
58
+ "@byline/ui": "4.9.0"
60
59
  },
61
60
  "peerDependencies": {
62
61
  "react": "^19.0.0",
@@ -71,6 +70,7 @@
71
70
  "@types/react": "19.2.17",
72
71
  "@types/react-dom": "19.2.3",
73
72
  "@vitejs/plugin-react": "^6.0.3",
73
+ "npm-run-all": "^4.1.5",
74
74
  "react": "^19.2.7",
75
75
  "react-dom": "^19.2.7",
76
76
  "rimraf": "^6.1.3",
@@ -48,7 +48,7 @@ const ko: NamespaceTranslations = koJson
48
48
  * Map of every bundled locale → its `byline-admin` namespace
49
49
  * translations. Static `import` statements above mean a consumer's
50
50
  * bundler sees a fixed-size set at build time. Today's locales bundle
51
- * eagerly; lazy loading is the [Phase 3](../../docs/07-internationalization/index.md#phase-3--lazy-locale-loading)
51
+ * eagerly; lazy loading is the [Phase 3](../../docs/08-internationalization/index.md#phase-3--lazy-locale-loading)
52
52
  * migration once locale count grows past ~5.
53
53
  */
54
54
  const BUNDLES: Readonly<Record<LocaleCode, NamespaceTranslations>> = {
package/src/index.ts CHANGED
@@ -23,7 +23,7 @@
23
23
  * Admin bundles (`adminTranslations(...)`, the English bundle) live
24
24
  * at `@byline/i18n/admin`.
25
25
  *
26
- * See `docs/07-internationalization/index.md` for the architecture.
26
+ * See `docs/08-internationalization/index.md` for the architecture.
27
27
  */
28
28
 
29
29
  export { createFormatter } from './formatter.js'
package/src/types.ts CHANGED
@@ -54,7 +54,7 @@ export type NamespaceTranslations = Readonly<Record<MessageKey, string>>
54
54
  * files, published as standalone npm packages, and round-tripped
55
55
  * through any translation tool. Authoring-time metadata
56
56
  * (descriptions, plural hints, deprecation markers) is a deferred
57
- * Phase 4 surface; see `docs/07-internationalization/index.md`.
57
+ * Phase 4 surface; see `docs/08-internationalization/index.md`.
58
58
  */
59
59
  export type TranslationBundle = Readonly<{
60
60
  [locale: LocaleCode]: Readonly<{