@adminiumjs/i18n 0.2.2-rc.0 → 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 +481 -172
- 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/editing.d.ts +1 -1
- package/dist/editing.js +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 +96 -970
- package/dist/resources/ar-eg/common.d.ts.map +1 -1
- package/dist/resources/ar-eg/common.js +99 -973
- 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 +60 -2
- package/dist/resources/ar-eg/ui.d.ts.map +1 -1
- package/dist/resources/ar-eg/ui.js +72 -14
- package/dist/resources/ar-eg/ui.js.map +1 -1
- package/dist/resources/cs-cz/common.d.ts +96 -970
- package/dist/resources/cs-cz/common.d.ts.map +1 -1
- package/dist/resources/cs-cz/common.js +99 -973
- 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 +60 -2
- package/dist/resources/cs-cz/ui.d.ts.map +1 -1
- package/dist/resources/cs-cz/ui.js +72 -14
- package/dist/resources/cs-cz/ui.js.map +1 -1
- package/dist/resources/da-dk/common.d.ts +96 -970
- package/dist/resources/da-dk/common.d.ts.map +1 -1
- package/dist/resources/da-dk/common.js +99 -973
- 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 +60 -2
- package/dist/resources/da-dk/ui.d.ts.map +1 -1
- package/dist/resources/da-dk/ui.js +72 -14
- package/dist/resources/da-dk/ui.js.map +1 -1
- package/dist/resources/de-de/common.d.ts +96 -970
- package/dist/resources/de-de/common.d.ts.map +1 -1
- package/dist/resources/de-de/common.js +99 -973
- 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 +60 -2
- package/dist/resources/de-de/ui.d.ts.map +1 -1
- package/dist/resources/de-de/ui.js +72 -14
- 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 +96 -970
- package/dist/resources/en-us/common.d.ts.map +1 -1
- package/dist/resources/en-us/common.js +99 -973
- 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 +60 -2
- package/dist/resources/en-us/ui.d.ts.map +1 -1
- package/dist/resources/en-us/ui.js +72 -14
- package/dist/resources/en-us/ui.js.map +1 -1
- package/dist/resources/fr-fr/common.d.ts +96 -970
- package/dist/resources/fr-fr/common.d.ts.map +1 -1
- package/dist/resources/fr-fr/common.js +99 -973
- 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 +60 -2
- package/dist/resources/fr-fr/ui.d.ts.map +1 -1
- package/dist/resources/fr-fr/ui.js +72 -14
- 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 +96 -970
- package/dist/resources/zh-cn/common.d.ts.map +1 -1
- package/dist/resources/zh-cn/common.js +99 -973
- 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 +60 -2
- package/dist/resources/zh-cn/ui.d.ts.map +1 -1
- package/dist/resources/zh-cn/ui.js +72 -14
- package/dist/resources/zh-cn/ui.js.map +1 -1
- package/dist/resources/zh-tw/common.d.ts +96 -970
- package/dist/resources/zh-tw/common.d.ts.map +1 -1
- package/dist/resources/zh-tw/common.js +99 -973
- 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 +60 -2
- package/dist/resources/zh-tw/ui.d.ts.map +1 -1
- package/dist/resources/zh-tw/ui.js +72 -14
- package/dist/resources/zh-tw/ui.js.map +1 -1
- package/dist/review-status.js +7 -7
- package/locales/ar-EG/.meta.json +3783 -2339
- package/locales/ar-EG/common.json +96 -971
- package/locales/ar-EG/studio.json +1279 -0
- package/locales/ar-EG/ui.json +69 -12
- package/locales/cs-CZ/.meta.json +3849 -2405
- package/locales/cs-CZ/common.json +96 -971
- package/locales/cs-CZ/studio.json +1279 -0
- package/locales/cs-CZ/ui.json +69 -12
- package/locales/da-DK/.meta.json +3935 -2491
- package/locales/da-DK/common.json +96 -971
- package/locales/da-DK/studio.json +1279 -0
- package/locales/da-DK/ui.json +69 -12
- package/locales/de-DE/.meta.json +3895 -2451
- package/locales/de-DE/common.json +96 -971
- package/locales/de-DE/studio.json +1279 -0
- package/locales/de-DE/ui.json +69 -12
- package/locales/en-US/common.json +96 -971
- package/locales/en-US/studio.json +1279 -0
- package/locales/en-US/ui.json +69 -12
- package/locales/fr-FR/.meta.json +3964 -2520
- package/locales/fr-FR/common.json +96 -971
- package/locales/fr-FR/studio.json +1279 -0
- package/locales/fr-FR/ui.json +69 -12
- package/locales/zh-CN/.meta.json +3781 -2337
- package/locales/zh-CN/common.json +96 -971
- package/locales/zh-CN/studio.json +1279 -0
- package/locales/zh-CN/ui.json +69 -12
- package/locales/zh-TW/.meta.json +3785 -2341
- package/locales/zh-TW/common.json +96 -971
- package/locales/zh-TW/studio.json +1279 -0
- package/locales/zh-TW/ui.json +69 -12
- package/package.json +1 -1
package/dist/resources/index.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* The complete en-US catalogue, for the surfaces that need every namespace at
|
|
4
|
+
* once: the key index behind the Translations editor (../keys.ts), the
|
|
5
|
+
* cross-locale parity gate (./parity.test.ts) and the override merge
|
|
6
|
+
* (../overrides.ts, which reaches this module through a dynamic import).
|
|
7
|
+
*
|
|
8
|
+
* NOT the runtime set. The dashboard's boot path imports {@link EN_US_EAGER}
|
|
9
|
+
* from ./eager.js and the namespace axis from ./namespaces.js; `studio` is
|
|
10
|
+
* fetched on demand for every locale, en-US included (./lazy.ts). Importing
|
|
11
|
+
* THIS module from anything on the boot path puts the whole console's English
|
|
12
|
+
* back in the entry chunk, which is what `apps/dashboard`'s
|
|
13
|
+
* check-entry-budget ratchet exists to catch.
|
|
8
14
|
*/
|
|
9
|
-
import common from './en-us/common.js';
|
|
10
|
-
import errors from './en-us/errors.js';
|
|
11
|
-
import generated from './en-us/generated.js';
|
|
12
15
|
import studio from './en-us/studio.js';
|
|
13
|
-
import
|
|
14
|
-
export
|
|
16
|
+
import { EN_US_EAGER } from './eager.js';
|
|
17
|
+
export { DEFERRED_NAMESPACES, EAGER_NAMESPACES, NAMESPACES, } from './namespaces.js';
|
|
18
|
+
export { EN_US_EAGER } from './eager.js';
|
|
15
19
|
export const EN_US_RESOURCES = {
|
|
16
|
-
|
|
17
|
-
ui,
|
|
20
|
+
...EN_US_EAGER,
|
|
18
21
|
studio,
|
|
19
|
-
generated,
|
|
20
|
-
errors,
|
|
21
22
|
};
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC;;;;;;;;;;;;GAYG;AACH,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAGzC,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,GAKX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,eAAe,GAAsC;IAChE,GAAG,WAAW;IACd,MAAM;CACP,CAAC"}
|
package/dist/resources/lazy.d.ts
CHANGED
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Lazy loaders for
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
2
|
+
* Lazy loaders for every locale/namespace pair that is not bundled
|
|
3
|
+
* (10-i18n-theming.md §2.3). Each entry is a LITERAL dynamic import so
|
|
4
|
+
* bundlers (Vite, Electron packaging) split one chunk per bundle and a de_DE
|
|
5
|
+
* user downloads only German strings. Pass {@link loadLocaleBundle} as
|
|
6
|
+
* `createI18n`'s `loadBundle`.
|
|
7
|
+
*
|
|
8
|
+
* Two things are lazy here, for two different reasons:
|
|
9
|
+
*
|
|
10
|
+
* - **the 7 non-English locales, every namespace.** en-US's eager namespaces
|
|
11
|
+
* (./eager.ts) ship in the main bundle because they are the fallback text
|
|
12
|
+
* and must never be async; nobody else's do.
|
|
13
|
+
* - **`studio`, en-US INCLUDED** (10-T06). The deferred namespace is loaded
|
|
14
|
+
* on demand by the surface that owns it, so the English console text is a
|
|
15
|
+
* chunk the console's own visitors fetch rather than ~36 KiB every user
|
|
16
|
+
* carries. See `DEFERRED_NAMESPACES` in ./namespaces.ts for the contract
|
|
17
|
+
* that makes this safe.
|
|
8
18
|
*/
|
|
9
|
-
import type { Namespace, ResourceBundle } from './
|
|
19
|
+
import type { Namespace, ResourceBundle } from './namespaces.js';
|
|
10
20
|
type BundleModule = {
|
|
11
21
|
default: ResourceBundle;
|
|
12
22
|
};
|
|
13
23
|
/**
|
|
14
24
|
* `BundleLoader`-shaped (create-i18n.ts): resolves `null` for pairs without a
|
|
15
|
-
* lazy bundle (en-US — already
|
|
16
|
-
* fallback chain applies instead of failing.
|
|
25
|
+
* lazy bundle (en-US's eager namespaces — already in the main chunk — and
|
|
26
|
+
* unknown tags), so the en-US fallback chain applies instead of failing.
|
|
17
27
|
*/
|
|
18
28
|
export declare function loadLocaleBundle(tag: string, ns: Namespace): Promise<BundleModule | null>;
|
|
19
29
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/resources/lazy.ts"],"names":[],"mappings":"AACA
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/resources/lazy.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjE,KAAK,YAAY,GAAG;IAAE,OAAO,EAAE,cAAc,CAAA;CAAE,CAAC;AA0ChD;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAI/F"}
|
package/dist/resources/lazy.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
const LOADERS = {
|
|
2
|
+
// The one en-US bundle that is not in the main chunk (DEFERRED_NAMESPACES).
|
|
3
|
+
'en-US/studio': () => import('./en-us/studio.js'),
|
|
2
4
|
'de-DE/common': () => import('./de-de/common.js'),
|
|
3
5
|
'de-DE/ui': () => import('./de-de/ui.js'),
|
|
4
6
|
'de-DE/studio': () => import('./de-de/studio.js'),
|
|
@@ -37,8 +39,8 @@ const LOADERS = {
|
|
|
37
39
|
};
|
|
38
40
|
/**
|
|
39
41
|
* `BundleLoader`-shaped (create-i18n.ts): resolves `null` for pairs without a
|
|
40
|
-
* lazy bundle (en-US — already
|
|
41
|
-
* fallback chain applies instead of failing.
|
|
42
|
+
* lazy bundle (en-US's eager namespaces — already in the main chunk — and
|
|
43
|
+
* unknown tags), so the en-US fallback chain applies instead of failing.
|
|
42
44
|
*/
|
|
43
45
|
export async function loadLocaleBundle(tag, ns) {
|
|
44
46
|
const loader = LOADERS[`${tag}/${ns}`];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.js","sourceRoot":"","sources":["../../src/resources/lazy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lazy.js","sourceRoot":"","sources":["../../src/resources/lazy.ts"],"names":[],"mappings":"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"}
|
|
@@ -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"}
|