@byline/i18n 4.8.0 → 4.10.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 +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +2 -2
- package/src/admin/index.ts +1 -1
- package/src/index.ts +1 -1
- package/src/types.ts +1 -1
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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.
|
|
6
|
+
"version": "4.10.0",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.9.0"
|
|
9
9
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"classnames": "^2.5.1",
|
|
56
56
|
"intl-messageformat": "^11.2.12",
|
|
57
57
|
"negotiator": "^1.0.0",
|
|
58
|
-
"@byline/ui": "4.
|
|
58
|
+
"@byline/ui": "4.10.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"react": "^19.0.0",
|
package/src/admin/index.ts
CHANGED
|
@@ -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/
|
|
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/
|
|
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/
|
|
57
|
+
* Phase 4 surface; see `docs/08-internationalization/index.md`.
|
|
58
58
|
*/
|
|
59
59
|
export type TranslationBundle = Readonly<{
|
|
60
60
|
[locale: LocaleCode]: Readonly<{
|