@adminiumjs/i18n 0.2.2 → 0.2.3
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/dist/a11y-keys.d.ts +1 -1
- package/dist/a11y-keys.d.ts.map +1 -1
- package/dist/a11y-keys.js +319 -224
- package/dist/a11y-keys.js.map +1 -1
- package/dist/create-i18n.d.ts +16 -6
- package/dist/create-i18n.d.ts.map +1 -1
- package/dist/create-i18n.js +23 -9
- package/dist/create-i18n.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -8
- package/dist/index.js.map +1 -1
- package/dist/keys.d.ts +6 -4
- package/dist/keys.d.ts.map +1 -1
- package/dist/keys.js +6 -4
- package/dist/keys.js.map +1 -1
- package/dist/overrides.d.ts +1 -1
- package/dist/overrides.d.ts.map +1 -1
- package/dist/resources/ar-eg/common.d.ts +31 -1071
- package/dist/resources/ar-eg/common.d.ts.map +1 -1
- package/dist/resources/ar-eg/common.js +31 -1071
- package/dist/resources/ar-eg/common.js.map +1 -1
- package/dist/resources/ar-eg/errors.d.ts +3 -2
- package/dist/resources/ar-eg/errors.d.ts.map +1 -1
- package/dist/resources/ar-eg/errors.js +3 -2
- package/dist/resources/ar-eg/errors.js.map +1 -1
- package/dist/resources/ar-eg/generated.d.ts +3 -2
- package/dist/resources/ar-eg/generated.d.ts.map +1 -1
- package/dist/resources/ar-eg/generated.js +3 -2
- package/dist/resources/ar-eg/generated.js.map +1 -1
- package/dist/resources/ar-eg/studio.d.ts +1282 -2
- package/dist/resources/ar-eg/studio.d.ts.map +1 -1
- package/dist/resources/ar-eg/studio.js +1282 -2
- package/dist/resources/ar-eg/studio.js.map +1 -1
- package/dist/resources/ar-eg/ui.d.ts +51 -2
- package/dist/resources/ar-eg/ui.d.ts.map +1 -1
- package/dist/resources/ar-eg/ui.js +55 -6
- package/dist/resources/ar-eg/ui.js.map +1 -1
- package/dist/resources/cs-cz/common.d.ts +31 -1071
- package/dist/resources/cs-cz/common.d.ts.map +1 -1
- package/dist/resources/cs-cz/common.js +31 -1071
- package/dist/resources/cs-cz/common.js.map +1 -1
- package/dist/resources/cs-cz/errors.d.ts +3 -2
- package/dist/resources/cs-cz/errors.d.ts.map +1 -1
- package/dist/resources/cs-cz/errors.js +3 -2
- package/dist/resources/cs-cz/errors.js.map +1 -1
- package/dist/resources/cs-cz/generated.d.ts +3 -2
- package/dist/resources/cs-cz/generated.d.ts.map +1 -1
- package/dist/resources/cs-cz/generated.js +3 -2
- package/dist/resources/cs-cz/generated.js.map +1 -1
- package/dist/resources/cs-cz/studio.d.ts +1282 -2
- package/dist/resources/cs-cz/studio.d.ts.map +1 -1
- package/dist/resources/cs-cz/studio.js +1282 -2
- package/dist/resources/cs-cz/studio.js.map +1 -1
- package/dist/resources/cs-cz/ui.d.ts +51 -2
- package/dist/resources/cs-cz/ui.d.ts.map +1 -1
- package/dist/resources/cs-cz/ui.js +55 -6
- package/dist/resources/cs-cz/ui.js.map +1 -1
- package/dist/resources/da-dk/common.d.ts +31 -1071
- package/dist/resources/da-dk/common.d.ts.map +1 -1
- package/dist/resources/da-dk/common.js +31 -1071
- package/dist/resources/da-dk/common.js.map +1 -1
- package/dist/resources/da-dk/errors.d.ts +3 -2
- package/dist/resources/da-dk/errors.d.ts.map +1 -1
- package/dist/resources/da-dk/errors.js +3 -2
- package/dist/resources/da-dk/errors.js.map +1 -1
- package/dist/resources/da-dk/generated.d.ts +3 -2
- package/dist/resources/da-dk/generated.d.ts.map +1 -1
- package/dist/resources/da-dk/generated.js +3 -2
- package/dist/resources/da-dk/generated.js.map +1 -1
- package/dist/resources/da-dk/studio.d.ts +1282 -2
- package/dist/resources/da-dk/studio.d.ts.map +1 -1
- package/dist/resources/da-dk/studio.js +1282 -2
- package/dist/resources/da-dk/studio.js.map +1 -1
- package/dist/resources/da-dk/ui.d.ts +51 -2
- package/dist/resources/da-dk/ui.d.ts.map +1 -1
- package/dist/resources/da-dk/ui.js +55 -6
- package/dist/resources/da-dk/ui.js.map +1 -1
- package/dist/resources/de-de/common.d.ts +31 -1071
- package/dist/resources/de-de/common.d.ts.map +1 -1
- package/dist/resources/de-de/common.js +31 -1071
- package/dist/resources/de-de/common.js.map +1 -1
- package/dist/resources/de-de/errors.d.ts +3 -2
- package/dist/resources/de-de/errors.d.ts.map +1 -1
- package/dist/resources/de-de/errors.js +3 -2
- package/dist/resources/de-de/errors.js.map +1 -1
- package/dist/resources/de-de/generated.d.ts +3 -2
- package/dist/resources/de-de/generated.d.ts.map +1 -1
- package/dist/resources/de-de/generated.js +3 -2
- package/dist/resources/de-de/generated.js.map +1 -1
- package/dist/resources/de-de/studio.d.ts +1282 -2
- package/dist/resources/de-de/studio.d.ts.map +1 -1
- package/dist/resources/de-de/studio.js +1282 -2
- package/dist/resources/de-de/studio.js.map +1 -1
- package/dist/resources/de-de/ui.d.ts +51 -2
- package/dist/resources/de-de/ui.d.ts.map +1 -1
- package/dist/resources/de-de/ui.js +55 -6
- package/dist/resources/de-de/ui.js.map +1 -1
- package/dist/resources/eager.d.ts +3 -0
- package/dist/resources/eager.d.ts.map +1 -0
- package/dist/resources/eager.js +25 -0
- package/dist/resources/eager.js.map +1 -0
- package/dist/resources/en-us/common.d.ts +31 -1071
- package/dist/resources/en-us/common.d.ts.map +1 -1
- package/dist/resources/en-us/common.js +31 -1071
- package/dist/resources/en-us/common.js.map +1 -1
- package/dist/resources/en-us/errors.d.ts +3 -2
- package/dist/resources/en-us/errors.d.ts.map +1 -1
- package/dist/resources/en-us/errors.js +3 -2
- package/dist/resources/en-us/errors.js.map +1 -1
- package/dist/resources/en-us/generated.d.ts +3 -2
- package/dist/resources/en-us/generated.d.ts.map +1 -1
- package/dist/resources/en-us/generated.js +3 -2
- package/dist/resources/en-us/generated.js.map +1 -1
- package/dist/resources/en-us/studio.d.ts +1282 -2
- package/dist/resources/en-us/studio.d.ts.map +1 -1
- package/dist/resources/en-us/studio.js +1282 -2
- package/dist/resources/en-us/studio.js.map +1 -1
- package/dist/resources/en-us/ui.d.ts +51 -2
- package/dist/resources/en-us/ui.d.ts.map +1 -1
- package/dist/resources/en-us/ui.js +55 -6
- package/dist/resources/en-us/ui.js.map +1 -1
- package/dist/resources/fr-fr/common.d.ts +31 -1071
- package/dist/resources/fr-fr/common.d.ts.map +1 -1
- package/dist/resources/fr-fr/common.js +31 -1071
- package/dist/resources/fr-fr/common.js.map +1 -1
- package/dist/resources/fr-fr/errors.d.ts +3 -2
- package/dist/resources/fr-fr/errors.d.ts.map +1 -1
- package/dist/resources/fr-fr/errors.js +3 -2
- package/dist/resources/fr-fr/errors.js.map +1 -1
- package/dist/resources/fr-fr/generated.d.ts +3 -2
- package/dist/resources/fr-fr/generated.d.ts.map +1 -1
- package/dist/resources/fr-fr/generated.js +3 -2
- package/dist/resources/fr-fr/generated.js.map +1 -1
- package/dist/resources/fr-fr/studio.d.ts +1282 -2
- package/dist/resources/fr-fr/studio.d.ts.map +1 -1
- package/dist/resources/fr-fr/studio.js +1282 -2
- package/dist/resources/fr-fr/studio.js.map +1 -1
- package/dist/resources/fr-fr/ui.d.ts +51 -2
- package/dist/resources/fr-fr/ui.d.ts.map +1 -1
- package/dist/resources/fr-fr/ui.js +55 -6
- package/dist/resources/fr-fr/ui.js.map +1 -1
- package/dist/resources/index.d.ts +3 -6
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +15 -14
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/lazy.d.ts +19 -9
- package/dist/resources/lazy.d.ts.map +1 -1
- package/dist/resources/lazy.js +4 -2
- package/dist/resources/lazy.js.map +1 -1
- package/dist/resources/namespaces.d.ts +43 -0
- package/dist/resources/namespaces.d.ts.map +1 -0
- package/dist/resources/namespaces.js +37 -0
- package/dist/resources/namespaces.js.map +1 -0
- package/dist/resources/zh-cn/common.d.ts +31 -1071
- package/dist/resources/zh-cn/common.d.ts.map +1 -1
- package/dist/resources/zh-cn/common.js +31 -1071
- package/dist/resources/zh-cn/common.js.map +1 -1
- package/dist/resources/zh-cn/errors.d.ts +3 -2
- package/dist/resources/zh-cn/errors.d.ts.map +1 -1
- package/dist/resources/zh-cn/errors.js +3 -2
- package/dist/resources/zh-cn/errors.js.map +1 -1
- package/dist/resources/zh-cn/generated.d.ts +3 -2
- package/dist/resources/zh-cn/generated.d.ts.map +1 -1
- package/dist/resources/zh-cn/generated.js +3 -2
- package/dist/resources/zh-cn/generated.js.map +1 -1
- package/dist/resources/zh-cn/studio.d.ts +1282 -2
- package/dist/resources/zh-cn/studio.d.ts.map +1 -1
- package/dist/resources/zh-cn/studio.js +1282 -2
- package/dist/resources/zh-cn/studio.js.map +1 -1
- package/dist/resources/zh-cn/ui.d.ts +51 -2
- package/dist/resources/zh-cn/ui.d.ts.map +1 -1
- package/dist/resources/zh-cn/ui.js +55 -6
- package/dist/resources/zh-cn/ui.js.map +1 -1
- package/dist/resources/zh-tw/common.d.ts +31 -1071
- package/dist/resources/zh-tw/common.d.ts.map +1 -1
- package/dist/resources/zh-tw/common.js +31 -1071
- package/dist/resources/zh-tw/common.js.map +1 -1
- package/dist/resources/zh-tw/errors.d.ts +3 -2
- package/dist/resources/zh-tw/errors.d.ts.map +1 -1
- package/dist/resources/zh-tw/errors.js +3 -2
- package/dist/resources/zh-tw/errors.js.map +1 -1
- package/dist/resources/zh-tw/generated.d.ts +3 -2
- package/dist/resources/zh-tw/generated.d.ts.map +1 -1
- package/dist/resources/zh-tw/generated.js +3 -2
- package/dist/resources/zh-tw/generated.js.map +1 -1
- package/dist/resources/zh-tw/studio.d.ts +1282 -2
- package/dist/resources/zh-tw/studio.d.ts.map +1 -1
- package/dist/resources/zh-tw/studio.js +1282 -2
- package/dist/resources/zh-tw/studio.js.map +1 -1
- package/dist/resources/zh-tw/ui.d.ts +51 -2
- package/dist/resources/zh-tw/ui.d.ts.map +1 -1
- package/dist/resources/zh-tw/ui.js +55 -6
- package/dist/resources/zh-tw/ui.js.map +1 -1
- package/dist/review-status.js +7 -7
- package/locales/ar-EG/.meta.json +3187 -2267
- package/locales/ar-EG/common.json +28 -1069
- package/locales/ar-EG/studio.json +1279 -0
- package/locales/ar-EG/ui.json +52 -4
- package/locales/cs-CZ/.meta.json +3203 -2283
- package/locales/cs-CZ/common.json +28 -1069
- package/locales/cs-CZ/studio.json +1279 -0
- package/locales/cs-CZ/ui.json +52 -4
- package/locales/da-DK/.meta.json +3208 -2288
- package/locales/da-DK/common.json +28 -1069
- package/locales/da-DK/studio.json +1279 -0
- package/locales/da-DK/ui.json +52 -4
- package/locales/de-DE/.meta.json +3201 -2281
- package/locales/de-DE/common.json +28 -1069
- package/locales/de-DE/studio.json +1279 -0
- package/locales/de-DE/ui.json +52 -4
- package/locales/en-US/common.json +28 -1069
- package/locales/en-US/studio.json +1279 -0
- package/locales/en-US/ui.json +52 -4
- package/locales/fr-FR/.meta.json +3205 -2285
- package/locales/fr-FR/common.json +28 -1069
- package/locales/fr-FR/studio.json +1279 -0
- package/locales/fr-FR/ui.json +52 -4
- package/locales/zh-CN/.meta.json +3185 -2265
- package/locales/zh-CN/common.json +28 -1069
- package/locales/zh-CN/studio.json +1279 -0
- package/locales/zh-CN/ui.json +52 -4
- package/locales/zh-TW/.meta.json +3188 -2268
- package/locales/zh-TW/common.json +28 -1069
- package/locales/zh-TW/studio.json +1279 -0
- package/locales/zh-TW/ui.json +52 -4
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The namespace axis, and which side of the bundle split each one is on
|
|
3
|
+
* (10-i18n-theming.md §2.3).
|
|
4
|
+
*
|
|
5
|
+
* DATA-FREE ON PURPOSE. `create-i18n.ts` needs the namespace list, and it is
|
|
6
|
+
* on the dashboard's boot path — so if these constants lived beside
|
|
7
|
+
* `EN_US_RESOURCES` (./index.ts), importing the list would pull every en-US
|
|
8
|
+
* mirror into the entry chunk and leave the split depending on whether Rollup
|
|
9
|
+
* happened to shake the unused binding out. Nothing here imports a bundle, so
|
|
10
|
+
* there is nothing to shake.
|
|
11
|
+
*/
|
|
12
|
+
/** Every authored namespace. The editor, the parity gate and the translation
|
|
13
|
+
* routes all work across the whole set, regardless of how it is delivered. */
|
|
14
|
+
export declare const NAMESPACES: readonly ["common", "ui", "studio", "generated", "errors"];
|
|
15
|
+
export type Namespace = (typeof NAMESPACES)[number];
|
|
16
|
+
/**
|
|
17
|
+
* Bundled into the caller's main chunk for en-US and loaded at init for every
|
|
18
|
+
* locale: this is the text the first paint needs, and the fallback chain that
|
|
19
|
+
* stands behind a partially-translated locale. It must never be async.
|
|
20
|
+
*/
|
|
21
|
+
export declare const EAGER_NAMESPACES: readonly ["common", "ui", "generated", "errors"];
|
|
22
|
+
export type EagerNamespace = (typeof EAGER_NAMESPACES)[number];
|
|
23
|
+
/**
|
|
24
|
+
* Loaded on demand, en-US included (10-T06 — the split this file's header in
|
|
25
|
+
* ./index.ts promised from the first wave).
|
|
26
|
+
*
|
|
27
|
+
* `studio` is the whole admin console: 975 messages, ~36 KiB of the en-US
|
|
28
|
+
* catalogue, behind a role gate that most users never pass and route bodies
|
|
29
|
+
* that are already lazy. Every other locale was already paying for it twice —
|
|
30
|
+
* once as English in the entry chunk, once as their own translation over the
|
|
31
|
+
* wire — and an en-US operator was downloading a console they may never open.
|
|
32
|
+
*
|
|
33
|
+
* The contract a deferred namespace owes: nothing outside its own surface may
|
|
34
|
+
* read a key from it, and that surface must await {@link Namespace} loading
|
|
35
|
+
* before it renders. See `apps/dashboard/src/studio/routes.tsx`.
|
|
36
|
+
*/
|
|
37
|
+
export declare const DEFERRED_NAMESPACES: readonly ["studio"];
|
|
38
|
+
export type DeferredNamespace = (typeof DEFERRED_NAMESPACES)[number];
|
|
39
|
+
/** A single namespace's message tree (nested string leaves). */
|
|
40
|
+
export type ResourceBundle = {
|
|
41
|
+
readonly [key: string]: string | ResourceBundle;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=namespaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../../src/resources/namespaces.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AAEH;+EAC+E;AAC/E,eAAO,MAAM,UAAU,4DAA6D,CAAC;AACrF,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,kDAAmD,CAAC;AACjF,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,qBAAsB,CAAC;AACvD,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,gEAAgE;AAChE,MAAM,MAAM,cAAc,GAAG;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
|
+
/**
|
|
3
|
+
* The namespace axis, and which side of the bundle split each one is on
|
|
4
|
+
* (10-i18n-theming.md §2.3).
|
|
5
|
+
*
|
|
6
|
+
* DATA-FREE ON PURPOSE. `create-i18n.ts` needs the namespace list, and it is
|
|
7
|
+
* on the dashboard's boot path — so if these constants lived beside
|
|
8
|
+
* `EN_US_RESOURCES` (./index.ts), importing the list would pull every en-US
|
|
9
|
+
* mirror into the entry chunk and leave the split depending on whether Rollup
|
|
10
|
+
* happened to shake the unused binding out. Nothing here imports a bundle, so
|
|
11
|
+
* there is nothing to shake.
|
|
12
|
+
*/
|
|
13
|
+
/** Every authored namespace. The editor, the parity gate and the translation
|
|
14
|
+
* routes all work across the whole set, regardless of how it is delivered. */
|
|
15
|
+
export const NAMESPACES = ['common', 'ui', 'studio', 'generated', 'errors'];
|
|
16
|
+
/**
|
|
17
|
+
* Bundled into the caller's main chunk for en-US and loaded at init for every
|
|
18
|
+
* locale: this is the text the first paint needs, and the fallback chain that
|
|
19
|
+
* stands behind a partially-translated locale. It must never be async.
|
|
20
|
+
*/
|
|
21
|
+
export const EAGER_NAMESPACES = ['common', 'ui', 'generated', 'errors'];
|
|
22
|
+
/**
|
|
23
|
+
* Loaded on demand, en-US included (10-T06 — the split this file's header in
|
|
24
|
+
* ./index.ts promised from the first wave).
|
|
25
|
+
*
|
|
26
|
+
* `studio` is the whole admin console: 975 messages, ~36 KiB of the en-US
|
|
27
|
+
* catalogue, behind a role gate that most users never pass and route bodies
|
|
28
|
+
* that are already lazy. Every other locale was already paying for it twice —
|
|
29
|
+
* once as English in the entry chunk, once as their own translation over the
|
|
30
|
+
* wire — and an en-US operator was downloading a console they may never open.
|
|
31
|
+
*
|
|
32
|
+
* The contract a deferred namespace owes: nothing outside its own surface may
|
|
33
|
+
* read a key from it, and that surface must await {@link Namespace} loading
|
|
34
|
+
* before it renders. See `apps/dashboard/src/studio/routes.tsx`.
|
|
35
|
+
*/
|
|
36
|
+
export const DEFERRED_NAMESPACES = ['studio'];
|
|
37
|
+
//# sourceMappingURL=namespaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../../src/resources/namespaces.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC;;;;;;;;;;GAUG;AAEH;+EAC+E;AAC/E,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAGrF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAGjF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAQ,CAAU,CAAC"}
|