@vmz/vmz 0.0.2 → 0.0.4
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 +19 -13
- package/dist/application-cmd.d.ts +1 -2
- package/dist/application-cmd.js +9 -10
- package/dist/bundler-adapter.d.ts +2 -3
- package/dist/bundler-adapter.js +2 -3
- package/dist/cdn-policy.d.ts +178 -0
- package/dist/cdn-policy.js +344 -0
- package/dist/cli.d.ts +10 -2
- package/dist/cli.js +179 -16
- package/dist/content-addressed-assets.d.ts +69 -0
- package/dist/content-addressed-assets.js +206 -0
- package/dist/dev-session.d.ts +2 -2
- package/dist/dev-session.js +51 -16
- package/dist/document-build.js +1 -2
- package/dist/document-check.d.ts +1 -1
- package/dist/document-check.js +4 -4
- package/dist/document-cmd.d.ts +1 -2
- package/dist/document-cmd.js +2 -3
- package/dist/document-designs.js +31 -3
- package/dist/document-enrich.js +2 -3
- package/dist/document-evidence.d.ts +4 -4
- package/dist/document-evidence.js +20 -12
- package/dist/document-integrate.d.ts +0 -1
- package/dist/document-integrate.js +0 -1
- package/dist/document-interactive.d.ts +11 -11
- package/dist/document-interactive.js +12 -13
- package/dist/document-locale.d.ts +1 -1
- package/dist/document-locale.js +1 -1
- package/dist/document-markdown.d.ts +1 -2
- package/dist/document-markdown.js +13 -7
- package/dist/document-scan.d.ts +4 -4
- package/dist/document-scan.js +4 -4
- package/dist/document-schema.d.ts +28 -29
- package/dist/document-schema.js +28 -29
- package/dist/explain-cmd.js +3 -3
- package/dist/index.d.ts +349 -789
- package/dist/index.js +109 -85
- package/dist/invocation.d.ts +68 -0
- package/dist/invocation.js +169 -0
- package/dist/locale-check.d.ts +19 -3
- package/dist/locale-check.js +130 -6
- package/dist/locale-cmd.js +6 -7
- package/dist/locale-delivery.d.ts +38 -38
- package/dist/locale-delivery.js +39 -40
- package/dist/locale-router.d.ts +39 -40
- package/dist/locale-router.js +39 -40
- package/dist/locale-runtime.d.ts +39 -39
- package/dist/locale-runtime.js +44 -45
- package/dist/locale-schema.d.ts +1 -2
- package/dist/locale-schema.js +1 -2
- package/dist/locale-tooling.d.ts +13 -13
- package/dist/locale-tooling.js +14 -15
- package/dist/log.d.ts +1 -1
- package/dist/log.js +1 -1
- package/dist/packages.d.ts +1 -2
- package/dist/packages.js +1 -2
- package/dist/plugin-host.d.ts +11 -3
- package/dist/plugin-host.js +21 -5
- package/dist/port.d.ts +10 -0
- package/dist/port.js +46 -0
- package/dist/production-observability.d.ts +286 -0
- package/dist/production-observability.js +469 -0
- package/dist/production-test-pack.d.ts +158 -0
- package/dist/production-test-pack.js +452 -0
- package/dist/refactor-cmd.d.ts +1 -1
- package/dist/refactor-cmd.js +6 -6
- package/dist/release-cmd.d.ts +8 -0
- package/dist/release-cmd.js +126 -0
- package/dist/release-pack.d.ts +96 -0
- package/dist/release-pack.js +337 -0
- package/dist/resolve-native-cli.d.ts +14 -0
- package/dist/resolve-native-cli.js +84 -0
- package/dist/resolve.d.ts +1 -2
- package/dist/resolve.js +1 -2
- package/dist/site-delivery.d.ts +134 -0
- package/dist/site-delivery.js +345 -0
- package/dist/static-emit.d.ts +136 -0
- package/dist/static-emit.js +463 -0
- package/dist/test-cmd.d.ts +2 -2
- package/dist/test-cmd.js +37 -17
- package/dist/watch-diff.d.ts +1 -1
- package/dist/watch-diff.js +1 -1
- package/package.json +32 -17
package/dist/locale-router.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Locale
|
|
2
|
+
* Locale router / PageMeta: route realization · canonical · hreflang ·
|
|
3
3
|
* Link locale retain · locale-aware cache key.
|
|
4
|
-
* Design: 规划设计/vmz/28 §6 · §10 · 20
|
|
5
4
|
*
|
|
6
5
|
* LocaleId is a RouteNode realization dimension — not part of stable RouteId.
|
|
7
6
|
*/
|
|
8
7
|
/**
|
|
9
8
|
* Join locale prefix with a stable route path pattern.
|
|
10
9
|
* @param {string} localeId
|
|
11
|
-
* @param {string} pathPattern
|
|
10
|
+
* @param {string} pathPattern stable path without locale (e.g. /account/profile)
|
|
12
11
|
* @param {{ strategy?: string, defaultPrefix?: string, defaultLocale?: string }} routing
|
|
13
12
|
*/
|
|
14
13
|
export declare function realizeRoutePath(localeId: any, pathPattern: any, routing?: {}): {
|
|
@@ -29,10 +28,10 @@ export declare function realizeRoutePath(localeId: any, pathPattern: any, routin
|
|
|
29
28
|
/**
|
|
30
29
|
* Build RouteId × LocaleId realization table.
|
|
31
30
|
* @param {{
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
31
|
+
* routes: Array<{ routeId: string, path: string }>,
|
|
32
|
+
* locales: string[],
|
|
33
|
+
* defaultLocale: string,
|
|
34
|
+
* routing?: { strategy?: string, defaultPrefix?: string },
|
|
36
35
|
* }} input
|
|
37
36
|
*/
|
|
38
37
|
export declare function buildLocaleRouteRealizationTable(input: any): {
|
|
@@ -55,15 +54,15 @@ export declare function absoluteUrl(origin: any, path: any): string;
|
|
|
55
54
|
/**
|
|
56
55
|
* Locale-aware PageMeta for one RouteId × LocaleId.
|
|
57
56
|
* @param {{
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
57
|
+
* routeId: string,
|
|
58
|
+
* localeId: string,
|
|
59
|
+
* direction?: string,
|
|
60
|
+
* title: string,
|
|
61
|
+
* description?: string,
|
|
62
|
+
* origin: string,
|
|
63
|
+
* realizations: Array<{ routeId: string, localeId: string, path: string }>,
|
|
64
|
+
* locales: string[],
|
|
65
|
+
* defaultLocale: string,
|
|
67
66
|
* }} input
|
|
68
67
|
*/
|
|
69
68
|
export declare function buildLocalePageMeta(input: any): {
|
|
@@ -82,9 +81,9 @@ export declare function buildLocalePageMeta(input: any): {
|
|
|
82
81
|
/**
|
|
83
82
|
* `<Link to="routeId">` retains current locale — never hand-written localized paths.
|
|
84
83
|
* @param {{
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
84
|
+
* to: string,
|
|
85
|
+
* currentLocale: string,
|
|
86
|
+
* realizations: Array<{ routeId: string, localeId: string, path: string }>,
|
|
88
87
|
* }} input
|
|
89
88
|
*/
|
|
90
89
|
export declare function resolveLinkHref(input: any): {
|
|
@@ -120,13 +119,13 @@ export declare function parseLocaleFromPath(pathname: any, supportedLocales: any
|
|
|
120
119
|
/**
|
|
121
120
|
* Plan redirect / negotiation for an incoming URL (omit-prefix aware).
|
|
122
121
|
* @param {{
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
122
|
+
* pathname: string,
|
|
123
|
+
* supportedLocales: string[],
|
|
124
|
+
* defaultLocale: string,
|
|
125
|
+
* routing?: { strategy?: string, defaultPrefix?: string },
|
|
126
|
+
* hostCandidates?: string[],
|
|
127
|
+
* preference?: string|null,
|
|
128
|
+
* userChoice?: string|null,
|
|
130
129
|
* }} input
|
|
131
130
|
*/
|
|
132
131
|
export declare function planLocalePathNavigation(input: any): {
|
|
@@ -157,11 +156,11 @@ export declare function assertLocaleCacheKey(input: any): {
|
|
|
157
156
|
/**
|
|
158
157
|
* LocaleTransition must commit Route realization + PageMeta together.
|
|
159
158
|
* @param {{
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
159
|
+
* fromLocale: string,
|
|
160
|
+
* toLocale: string,
|
|
161
|
+
* routeId: string,
|
|
162
|
+
* realizations: Array<{ routeId: string, localeId: string, path: string }>,
|
|
163
|
+
* pageMetaByLocale: Record<string, { locale: string, canonical: string }>,
|
|
165
164
|
* }} input
|
|
166
165
|
*/
|
|
167
166
|
export declare function commitLocaleRouteMetaTransition(input: any): {
|
|
@@ -176,16 +175,16 @@ export declare function commitLocaleRouteMetaTransition(input: any): {
|
|
|
176
175
|
diagnostics: any[];
|
|
177
176
|
};
|
|
178
177
|
/**
|
|
179
|
-
* Aggregate
|
|
178
|
+
* Aggregate router/meta proof.
|
|
180
179
|
* @param {{
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
180
|
+
* manifest: {
|
|
181
|
+
* defaultLocale: string,
|
|
182
|
+
* locales: Array<{ id: string, direction?: string }>,
|
|
183
|
+
* routing?: { strategy?: string, defaultPrefix?: string },
|
|
184
|
+
* },
|
|
185
|
+
* routes: Array<{ routeId: string, path: string }>,
|
|
186
|
+
* titles?: Record<string, Record<string, string>>,
|
|
187
|
+
* origin?: string,
|
|
189
188
|
* }} input
|
|
190
189
|
*/
|
|
191
190
|
export declare function checkLocaleRouter(input: any): {
|
package/dist/locale-router.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
/**
|
|
3
|
-
* Locale
|
|
3
|
+
* Locale router / PageMeta: route realization · canonical · hreflang ·
|
|
4
4
|
* Link locale retain · locale-aware cache key.
|
|
5
|
-
* Design: 规划设计/vmz/28 §6 · §10 · 20
|
|
6
5
|
*
|
|
7
6
|
* LocaleId is a RouteNode realization dimension — not part of stable RouteId.
|
|
8
7
|
*/
|
|
@@ -22,7 +21,7 @@ function normalizePath(path) {
|
|
|
22
21
|
/**
|
|
23
22
|
* Join locale prefix with a stable route path pattern.
|
|
24
23
|
* @param {string} localeId
|
|
25
|
-
* @param {string} pathPattern
|
|
24
|
+
* @param {string} pathPattern stable path without locale (e.g. /account/profile)
|
|
26
25
|
* @param {{ strategy?: string, defaultPrefix?: string, defaultLocale?: string }} routing
|
|
27
26
|
*/
|
|
28
27
|
export function realizeRoutePath(localeId, pathPattern, routing = {}) {
|
|
@@ -64,10 +63,10 @@ export function realizeRoutePath(localeId, pathPattern, routing = {}) {
|
|
|
64
63
|
/**
|
|
65
64
|
* Build RouteId × LocaleId realization table.
|
|
66
65
|
* @param {{
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
66
|
+
* routes: Array<{ routeId: string, path: string }>,
|
|
67
|
+
* locales: string[],
|
|
68
|
+
* defaultLocale: string,
|
|
69
|
+
* routing?: { strategy?: string, defaultPrefix?: string },
|
|
71
70
|
* }} input
|
|
72
71
|
*/
|
|
73
72
|
export function buildLocaleRouteRealizationTable(input) {
|
|
@@ -125,15 +124,15 @@ export function absoluteUrl(origin, path) {
|
|
|
125
124
|
/**
|
|
126
125
|
* Locale-aware PageMeta for one RouteId × LocaleId.
|
|
127
126
|
* @param {{
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
127
|
+
* routeId: string,
|
|
128
|
+
* localeId: string,
|
|
129
|
+
* direction?: string,
|
|
130
|
+
* title: string,
|
|
131
|
+
* description?: string,
|
|
132
|
+
* origin: string,
|
|
133
|
+
* realizations: Array<{ routeId: string, localeId: string, path: string }>,
|
|
134
|
+
* locales: string[],
|
|
135
|
+
* defaultLocale: string,
|
|
137
136
|
* }} input
|
|
138
137
|
*/
|
|
139
138
|
export function buildLocalePageMeta(input) {
|
|
@@ -193,9 +192,9 @@ export function buildLocalePageMeta(input) {
|
|
|
193
192
|
/**
|
|
194
193
|
* `<Link to="routeId">` retains current locale — never hand-written localized paths.
|
|
195
194
|
* @param {{
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
195
|
+
* to: string,
|
|
196
|
+
* currentLocale: string,
|
|
197
|
+
* realizations: Array<{ routeId: string, localeId: string, path: string }>,
|
|
199
198
|
* }} input
|
|
200
199
|
*/
|
|
201
200
|
export function resolveLinkHref(input) {
|
|
@@ -264,13 +263,13 @@ export function parseLocaleFromPath(pathname, supportedLocales) {
|
|
|
264
263
|
/**
|
|
265
264
|
* Plan redirect / negotiation for an incoming URL (omit-prefix aware).
|
|
266
265
|
* @param {{
|
|
267
|
-
*
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
266
|
+
* pathname: string,
|
|
267
|
+
* supportedLocales: string[],
|
|
268
|
+
* defaultLocale: string,
|
|
269
|
+
* routing?: { strategy?: string, defaultPrefix?: string },
|
|
270
|
+
* hostCandidates?: string[],
|
|
271
|
+
* preference?: string|null,
|
|
272
|
+
* userChoice?: string|null,
|
|
274
273
|
* }} input
|
|
275
274
|
*/
|
|
276
275
|
export function planLocalePathNavigation(input) {
|
|
@@ -354,11 +353,11 @@ export function assertLocaleCacheKey(input) {
|
|
|
354
353
|
/**
|
|
355
354
|
* LocaleTransition must commit Route realization + PageMeta together.
|
|
356
355
|
* @param {{
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
356
|
+
* fromLocale: string,
|
|
357
|
+
* toLocale: string,
|
|
358
|
+
* routeId: string,
|
|
359
|
+
* realizations: Array<{ routeId: string, localeId: string, path: string }>,
|
|
360
|
+
* pageMetaByLocale: Record<string, { locale: string, canonical: string }>,
|
|
362
361
|
* }} input
|
|
363
362
|
*/
|
|
364
363
|
export function commitLocaleRouteMetaTransition(input) {
|
|
@@ -401,16 +400,16 @@ export function commitLocaleRouteMetaTransition(input) {
|
|
|
401
400
|
};
|
|
402
401
|
}
|
|
403
402
|
/**
|
|
404
|
-
* Aggregate
|
|
403
|
+
* Aggregate router/meta proof.
|
|
405
404
|
* @param {{
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
-
*
|
|
409
|
-
*
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
*
|
|
405
|
+
* manifest: {
|
|
406
|
+
* defaultLocale: string,
|
|
407
|
+
* locales: Array<{ id: string, direction?: string }>,
|
|
408
|
+
* routing?: { strategy?: string, defaultPrefix?: string },
|
|
409
|
+
* },
|
|
410
|
+
* routes: Array<{ routeId: string, path: string }>,
|
|
411
|
+
* titles?: Record<string, Record<string, string>>,
|
|
412
|
+
* origin?: string,
|
|
414
413
|
* }} input
|
|
415
414
|
*/
|
|
416
415
|
export function checkLocaleRouter(input) {
|
package/dist/locale-runtime.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Fixed negotiation priority (
|
|
2
|
+
* Fixed negotiation priority (locale notes ). Host only supplies candidates.
|
|
3
3
|
* @param {{
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* supportedLocales: string[],
|
|
5
|
+
* defaultLocale: string,
|
|
6
|
+
* routeLocale?: string|null,
|
|
7
|
+
* userChoice?: string|null,
|
|
8
|
+
* preference?: string|null,
|
|
9
|
+
* hostCandidates?: string[],
|
|
10
10
|
* }} input
|
|
11
11
|
*/
|
|
12
12
|
export declare function negotiateLocale(input: any): any;
|
|
13
13
|
/**
|
|
14
14
|
* @param {{
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* applicationId: string,
|
|
16
|
+
* deliveryId: string,
|
|
17
|
+
* localeId: string,
|
|
18
|
+
* timeZone: string,
|
|
19
|
+
* calendar?: string,
|
|
20
|
+
* numberingSystem?: string,
|
|
21
|
+
* direction?: string,
|
|
22
|
+
* generation?: number,
|
|
23
23
|
* }} opts
|
|
24
24
|
*/
|
|
25
25
|
export declare function buildApplicationContext(opts: any): {
|
|
@@ -63,10 +63,10 @@ export declare function validateFormatterContext(formatter: any, opts?: {}): {
|
|
|
63
63
|
/**
|
|
64
64
|
* Resolve one MessageBinding to a single locale variant (whole-message, no mix).
|
|
65
65
|
* @param {{
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
66
|
+
* messageId: string,
|
|
67
|
+
* requestedLocale: string,
|
|
68
|
+
* variants: Record<string, { template: string }>,
|
|
69
|
+
* fallback?: Record<string, string[]>,
|
|
70
70
|
* }} input
|
|
71
71
|
*/
|
|
72
72
|
export declare function resolveMessageVariant(input: any): {
|
|
@@ -79,24 +79,24 @@ export declare function resolveMessageVariant(input: any): {
|
|
|
79
79
|
ok: boolean;
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
82
|
-
* Minimal ICU MessageFormat subset for
|
|
82
|
+
* Minimal ICU MessageFormat subset for parity proofs (params + plural + #).
|
|
83
83
|
* @param {string} template
|
|
84
84
|
* @param {Record<string, any>} [args]
|
|
85
85
|
*/
|
|
86
86
|
export declare function formatMessageTemplate(template: any, args?: {}): string;
|
|
87
87
|
/**
|
|
88
88
|
* @param {{
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
89
|
+
* applicationId: string,
|
|
90
|
+
* deliveryId: string,
|
|
91
|
+
* supportedLocales: string[],
|
|
92
|
+
* defaultLocale: string,
|
|
93
|
+
* fallback?: Record<string, string[]>,
|
|
94
|
+
* directions?: Record<string, string>,
|
|
95
|
+
* messages: Record<string, { variants: Record<string, { template: string }> }>,
|
|
96
|
+
* initialLocaleId: string,
|
|
97
|
+
* timeZone: string,
|
|
98
|
+
* generation?: number,
|
|
99
|
+
* loadedChunks?: Set<string>|string[],
|
|
100
100
|
* }} opts
|
|
101
101
|
*/
|
|
102
102
|
export declare function createLocaleSession(opts: any): {
|
|
@@ -229,8 +229,8 @@ export declare function createLocaleSession(opts: any): {
|
|
|
229
229
|
/**
|
|
230
230
|
* SSR and client must share the same resolved FormatterContext digest and texts.
|
|
231
231
|
* @param {{
|
|
232
|
-
*
|
|
233
|
-
*
|
|
232
|
+
* ssr: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
|
|
233
|
+
* client: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
|
|
234
234
|
* }} input
|
|
235
235
|
*/
|
|
236
236
|
export declare function checkSsrClientParity(input: any): {
|
|
@@ -240,13 +240,13 @@ export declare function checkSsrClientParity(input: any): {
|
|
|
240
240
|
diagnostics: any[];
|
|
241
241
|
};
|
|
242
242
|
/**
|
|
243
|
-
* Aggregate
|
|
243
|
+
* Aggregate runtime proof for a project check report + explicit contexts.
|
|
244
244
|
* @param {{
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
245
|
+
* manifest: { defaultLocale: string, locales: Array<{id:string,direction?:string}>, fallback?: Record<string,string[]> },
|
|
246
|
+
* messages: Array<{ messageId: string, variants: Record<string, { template: string }> }>,
|
|
247
|
+
* applicationId?: string,
|
|
248
|
+
* deliveryId?: string,
|
|
249
|
+
* timeZone?: string,
|
|
250
250
|
* }} input
|
|
251
251
|
*/
|
|
252
252
|
export declare function checkLocaleRuntime(input: any): {
|
package/dist/locale-runtime.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
/**
|
|
3
|
-
* Locale
|
|
3
|
+
* Locale runtime: LocaleContext · FormatterContext · negotiation ·
|
|
4
4
|
* atomic LocaleTransition · SSR/client parity.
|
|
5
|
-
* Design: 规划设计/vmz/28 §5–§8
|
|
6
5
|
*
|
|
7
6
|
* Not an I18n IR — ApplicationContext + Delivery projections over VPG Message views.
|
|
8
7
|
*/
|
|
9
8
|
import { createHash } from 'node:crypto';
|
|
10
9
|
import { DIAG_FORMATTER_CONTEXT_INCOMPLETE, DIAG_FORMATTER_VERSION_MISMATCH, DIAG_LOCALE_DIGEST_MISMATCH, DIAG_LOCALE_MACHINE_DEFAULT_FORBIDDEN, DIAG_LOCALE_STALE_GENERATION, DIAG_LOCALE_TRANSITION_LOAD_FAILED, DIAG_LOCALE_TRANSITION_PARTIAL, DIAG_LOCALE_TRANSITION_UNSUPPORTED, DIAG_MESSAGE_MIXED_LOCALE, FORMATTER_DATA_VERSION, LOCALE_APPLICATION_CONTEXT_SCHEMA, LOCALE_FALLBACK_RESOLUTION_SCHEMA, LOCALE_FORMATTER_CONTEXT_SCHEMA, LOCALE_RUNTIME_CHECK_SCHEMA, LOCALE_TRANSITION_SCHEMA, } from './locale-schema.js';
|
|
11
10
|
/**
|
|
12
|
-
* Fixed negotiation priority (
|
|
11
|
+
* Fixed negotiation priority (locale notes ). Host only supplies candidates.
|
|
13
12
|
* @param {{
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
13
|
+
* supportedLocales: string[],
|
|
14
|
+
* defaultLocale: string,
|
|
15
|
+
* routeLocale?: string|null,
|
|
16
|
+
* userChoice?: string|null,
|
|
17
|
+
* preference?: string|null,
|
|
18
|
+
* hostCandidates?: string[],
|
|
20
19
|
* }} input
|
|
21
20
|
*/
|
|
22
21
|
export function negotiateLocale(input) {
|
|
@@ -36,14 +35,14 @@ export function negotiateLocale(input) {
|
|
|
36
35
|
}
|
|
37
36
|
/**
|
|
38
37
|
* @param {{
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
38
|
+
* applicationId: string,
|
|
39
|
+
* deliveryId: string,
|
|
40
|
+
* localeId: string,
|
|
41
|
+
* timeZone: string,
|
|
42
|
+
* calendar?: string,
|
|
43
|
+
* numberingSystem?: string,
|
|
44
|
+
* direction?: string,
|
|
45
|
+
* generation?: number,
|
|
47
46
|
* }} opts
|
|
48
47
|
*/
|
|
49
48
|
export function buildApplicationContext(opts) {
|
|
@@ -137,10 +136,10 @@ export function validateFormatterContext(formatter, opts = {}) {
|
|
|
137
136
|
/**
|
|
138
137
|
* Resolve one MessageBinding to a single locale variant (whole-message, no mix).
|
|
139
138
|
* @param {{
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
139
|
+
* messageId: string,
|
|
140
|
+
* requestedLocale: string,
|
|
141
|
+
* variants: Record<string, { template: string }>,
|
|
142
|
+
* fallback?: Record<string, string[]>,
|
|
144
143
|
* }} input
|
|
145
144
|
*/
|
|
146
145
|
export function resolveMessageVariant(input) {
|
|
@@ -171,7 +170,7 @@ export function resolveMessageVariant(input) {
|
|
|
171
170
|
};
|
|
172
171
|
}
|
|
173
172
|
/**
|
|
174
|
-
* Minimal ICU MessageFormat subset for
|
|
173
|
+
* Minimal ICU MessageFormat subset for parity proofs (params + plural + #).
|
|
175
174
|
* @param {string} template
|
|
176
175
|
* @param {Record<string, any>} [args]
|
|
177
176
|
*/
|
|
@@ -205,17 +204,17 @@ export function formatMessageTemplate(template, args = {}) {
|
|
|
205
204
|
}
|
|
206
205
|
/**
|
|
207
206
|
* @param {{
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
207
|
+
* applicationId: string,
|
|
208
|
+
* deliveryId: string,
|
|
209
|
+
* supportedLocales: string[],
|
|
210
|
+
* defaultLocale: string,
|
|
211
|
+
* fallback?: Record<string, string[]>,
|
|
212
|
+
* directions?: Record<string, string>,
|
|
213
|
+
* messages: Record<string, { variants: Record<string, { template: string }> }>,
|
|
214
|
+
* initialLocaleId: string,
|
|
215
|
+
* timeZone: string,
|
|
216
|
+
* generation?: number,
|
|
217
|
+
* loadedChunks?: Set<string>|string[],
|
|
219
218
|
* }} opts
|
|
220
219
|
*/
|
|
221
220
|
export function createLocaleSession(opts) {
|
|
@@ -272,12 +271,12 @@ export function createLocaleSession(opts) {
|
|
|
272
271
|
return { bindings: out, resolvedLocales: unique };
|
|
273
272
|
}
|
|
274
273
|
/**
|
|
275
|
-
* Atomic LocaleTransition (
|
|
274
|
+
* Atomic LocaleTransition (locale notes ).
|
|
276
275
|
* @param {string} targetLocaleId
|
|
277
276
|
* @param {{
|
|
278
|
-
*
|
|
279
|
-
*
|
|
280
|
-
*
|
|
277
|
+
* generation?: number,
|
|
278
|
+
* loadChunk?: (localeId: string) => boolean|Promise<boolean>,
|
|
279
|
+
* timeZone?: string,
|
|
281
280
|
* }} [transitionOpts]
|
|
282
281
|
*/
|
|
283
282
|
async function transition(targetLocaleId, transitionOpts = {}) {
|
|
@@ -408,8 +407,8 @@ export function createLocaleSession(opts) {
|
|
|
408
407
|
/**
|
|
409
408
|
* SSR and client must share the same resolved FormatterContext digest and texts.
|
|
410
409
|
* @param {{
|
|
411
|
-
*
|
|
412
|
-
*
|
|
410
|
+
* ssr: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
|
|
411
|
+
* client: { localeId: string, formatterDigest: string, formatterDataVersion?: string, texts: Record<string, string> },
|
|
413
412
|
* }} input
|
|
414
413
|
*/
|
|
415
414
|
export function checkSsrClientParity(input) {
|
|
@@ -457,13 +456,13 @@ export function checkSsrClientParity(input) {
|
|
|
457
456
|
};
|
|
458
457
|
}
|
|
459
458
|
/**
|
|
460
|
-
* Aggregate
|
|
459
|
+
* Aggregate runtime proof for a project check report + explicit contexts.
|
|
461
460
|
* @param {{
|
|
462
|
-
*
|
|
463
|
-
*
|
|
464
|
-
*
|
|
465
|
-
*
|
|
466
|
-
*
|
|
461
|
+
* manifest: { defaultLocale: string, locales: Array<{id:string,direction?:string}>, fallback?: Record<string,string[]> },
|
|
462
|
+
* messages: Array<{ messageId: string, variants: Record<string, { template: string }> }>,
|
|
463
|
+
* applicationId?: string,
|
|
464
|
+
* deliveryId?: string,
|
|
465
|
+
* timeZone?: string,
|
|
467
466
|
* }} input
|
|
468
467
|
*/
|
|
469
468
|
export function checkLocaleRuntime(input) {
|
package/dist/locale-schema.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Locale
|
|
3
|
-
* Design: 规划设计/vmz/28
|
|
2
|
+
* Locale – schema constants & diagnostic codes.
|
|
4
3
|
*/
|
|
5
4
|
export { FORMATTER_DATA_VERSION, LOCALE_APPLICATION_CONTEXT_SCHEMA, LOCALE_CHECK_SCHEMA, LOCALE_CHUNK_MANIFEST_SCHEMA, LOCALE_CONFORMANCE_SCHEMA, LOCALE_DELIVERY_CHECK_SCHEMA, LOCALE_DELIVERY_RESOLUTION_SCHEMA, LOCALE_DIAG_CACHE_KEY_STEALS_CONTENT as DIAG_LOCALE_CACHE_KEY_STEALS_CONTENT, LOCALE_DIAG_CANONICAL_MISSING as DIAG_LOCALE_CANONICAL_MISSING, LOCALE_DIAG_CATALOG_CONFLICT as DIAG_CATALOG_CONFLICT, LOCALE_DIAG_CATALOG_PARSE as DIAG_CATALOG_PARSE, LOCALE_DIAG_CHUNK_HASH_MISMATCH as DIAG_LOCALE_CHUNK_HASH_MISMATCH, LOCALE_DIAG_CONFORMANCE_DIVERGENCE as DIAG_LOCALE_CONFORMANCE_DIVERGENCE, LOCALE_DIAG_DEFAULT_MISSING as DIAG_DEFAULT_MISSING, LOCALE_DIAG_DELIVERY_FULL_BUNDLE as DIAG_LOCALE_DELIVERY_FULL_BUNDLE, LOCALE_DIAG_DIGEST_MISMATCH as DIAG_LOCALE_DIGEST_MISMATCH, LOCALE_DIAG_DIR_MISSING as DIAG_DIR_MISSING, LOCALE_DIAG_DIR_ORPHAN as DIAG_DIR_ORPHAN, LOCALE_DIAG_EXPLAIN_UNKNOWN as DIAG_LOCALE_EXPLAIN_UNKNOWN, LOCALE_DIAG_FALLBACK_CYCLE as DIAG_FALLBACK_CYCLE, LOCALE_DIAG_FALLBACK_UNKNOWN as DIAG_FALLBACK_UNKNOWN, LOCALE_DIAG_FORMATTER_CONTEXT_INCOMPLETE as DIAG_FORMATTER_CONTEXT_INCOMPLETE, LOCALE_DIAG_FORMATTER_VERSION_MISMATCH as DIAG_FORMATTER_VERSION_MISMATCH, LOCALE_DIAG_HARDCODED_TEXT as DIAG_LOCALE_HARDCODED_TEXT, LOCALE_DIAG_HOST_MESSAGE_DIVERGENCE as DIAG_LOCALE_HOST_MESSAGE_DIVERGENCE, LOCALE_DIAG_HREFLANG_INCOMPLETE as DIAG_LOCALE_HREFLANG_INCOMPLETE, LOCALE_DIAG_ID_COLLISION as DIAG_ID_COLLISION, LOCALE_DIAG_ID_INVALID as DIAG_ID_INVALID, LOCALE_DIAG_LAYOUT_ILLEGAL as DIAG_LAYOUT_ILLEGAL, LOCALE_DIAG_LINK_HARDCODED_PATH as DIAG_LOCALE_LINK_HARDCODED_PATH, LOCALE_DIAG_MACHINE_DEFAULT_FORBIDDEN as DIAG_LOCALE_MACHINE_DEFAULT_FORBIDDEN, LOCALE_DIAG_MANIFEST_MISSING as DIAG_MANIFEST_MISSING, LOCALE_DIAG_MESSAGE_ARRAY_FORBIDDEN as DIAG_MESSAGE_ARRAY_FORBIDDEN, LOCALE_DIAG_MESSAGE_DYNAMIC_ID_UNBOUNDED as DIAG_MESSAGE_DYNAMIC_ID_UNBOUNDED, LOCALE_DIAG_MESSAGE_HTML_FORBIDDEN as DIAG_MESSAGE_HTML_FORBIDDEN, LOCALE_DIAG_MESSAGE_MISSING_DEFAULT as DIAG_MESSAGE_MISSING_DEFAULT, LOCALE_DIAG_MESSAGE_MISSING_VARIANT as DIAG_MESSAGE_MISSING_VARIANT, LOCALE_DIAG_MESSAGE_MIXED_LOCALE as DIAG_MESSAGE_MIXED_LOCALE, LOCALE_DIAG_MESSAGE_PARAMETER_MISMATCH as DIAG_MESSAGE_PARAMETER_MISMATCH, LOCALE_DIAG_MESSAGE_SYNTAX_INVALID as DIAG_MESSAGE_SYNTAX_INVALID, LOCALE_DIAG_MESSAGE_UNUSED as DIAG_MESSAGE_UNUSED, LOCALE_DIAG_META_LOCALE_MISMATCH as DIAG_LOCALE_META_LOCALE_MISMATCH, LOCALE_DIAG_MINI_CROSS_PACKAGE_UNPROVEN as DIAG_LOCALE_MINI_CROSS_PACKAGE_UNPROVEN, LOCALE_DIAG_NATIVE_PACK_APP_MISMATCH as DIAG_LOCALE_NATIVE_PACK_APP_MISMATCH, LOCALE_DIAG_NATIVE_PACK_HAS_JS as DIAG_LOCALE_NATIVE_PACK_HAS_JS, LOCALE_DIAG_NATIVE_PACK_UNSIGNED as DIAG_LOCALE_NATIVE_PACK_UNSIGNED, LOCALE_DIAG_PREFIX_OMIT_WITHOUT_REDIRECT as DIAG_LOCALE_PREFIX_OMIT_WITHOUT_REDIRECT, LOCALE_DIAG_PSEUDO_PRODUCTION_FORBIDDEN as DIAG_LOCALE_PSEUDO_PRODUCTION_FORBIDDEN, LOCALE_DIAG_ROUTE_COLLISION as DIAG_LOCALE_ROUTE_COLLISION, LOCALE_DIAG_SERVER_FORMAT_WITHOUT_CONTEXT as DIAG_LOCALE_SERVER_FORMAT_WITHOUT_CONTEXT, LOCALE_DIAG_SERVER_TRANSLATED_ERROR as DIAG_LOCALE_SERVER_TRANSLATED_ERROR, LOCALE_DIAG_STALE_GENERATION as DIAG_LOCALE_STALE_GENERATION, LOCALE_DIAG_TRANSITION_LOAD_FAILED as DIAG_LOCALE_TRANSITION_LOAD_FAILED, LOCALE_DIAG_TRANSITION_PARTIAL as DIAG_LOCALE_TRANSITION_PARTIAL, LOCALE_DIAG_TRANSITION_UNSUPPORTED as DIAG_LOCALE_TRANSITION_UNSUPPORTED, LOCALE_DIFF_SCHEMA, LOCALE_EXPLAIN_SCHEMA, LOCALE_EXTRACT_SCHEMA, LOCALE_FALLBACK_RESOLUTION_SCHEMA, LOCALE_FORMATTER_CONTEXT_SCHEMA, LOCALE_LINK_RESOLUTION_SCHEMA, LOCALE_MANIFEST_SCHEMA, LOCALE_MESSAGE_CATALOG_SCHEMA as MESSAGE_CATALOG_SCHEMA, LOCALE_MESSAGE_NODE_SCHEMA as MESSAGE_NODE_SCHEMA, LOCALE_MINI_PACKAGE_PROOF_SCHEMA, LOCALE_NATIVE_PACK_SCHEMA, LOCALE_PAGE_META_SCHEMA, LOCALE_PROTOCOL, LOCALE_PSEUDO_SCHEMA, LOCALE_RENAME_SCHEMA, LOCALE_ROUTE_REALIZATION_SCHEMA, LOCALE_ROUTER_CHECK_SCHEMA, LOCALE_RUNTIME_CHECK_SCHEMA, LOCALE_SERVER_ERROR_ENVELOPE_SCHEMA, LOCALE_TRANSITION_SCHEMA, LOCALE_TYPED_MODULE_SCHEMA, LOCALE_VIRTUAL_MODULE_PREFIX, } from '@vmz/protocol';
|
|
6
5
|
/** Reserved first-level names under /locales (not LocaleId dirs). */
|
package/dist/locale-schema.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
/**
|
|
3
|
-
* Locale
|
|
4
|
-
* Design: 规划设计/vmz/28
|
|
3
|
+
* Locale – schema constants & diagnostic codes.
|
|
5
4
|
*/
|
|
6
5
|
export { FORMATTER_DATA_VERSION, LOCALE_APPLICATION_CONTEXT_SCHEMA, LOCALE_CHECK_SCHEMA, LOCALE_CHUNK_MANIFEST_SCHEMA, LOCALE_CONFORMANCE_SCHEMA, LOCALE_DELIVERY_CHECK_SCHEMA, LOCALE_DELIVERY_RESOLUTION_SCHEMA, LOCALE_DIAG_CACHE_KEY_STEALS_CONTENT as DIAG_LOCALE_CACHE_KEY_STEALS_CONTENT, LOCALE_DIAG_CANONICAL_MISSING as DIAG_LOCALE_CANONICAL_MISSING, LOCALE_DIAG_CATALOG_CONFLICT as DIAG_CATALOG_CONFLICT, LOCALE_DIAG_CATALOG_PARSE as DIAG_CATALOG_PARSE, LOCALE_DIAG_CHUNK_HASH_MISMATCH as DIAG_LOCALE_CHUNK_HASH_MISMATCH, LOCALE_DIAG_CONFORMANCE_DIVERGENCE as DIAG_LOCALE_CONFORMANCE_DIVERGENCE, LOCALE_DIAG_DEFAULT_MISSING as DIAG_DEFAULT_MISSING, LOCALE_DIAG_DELIVERY_FULL_BUNDLE as DIAG_LOCALE_DELIVERY_FULL_BUNDLE, LOCALE_DIAG_DIGEST_MISMATCH as DIAG_LOCALE_DIGEST_MISMATCH, LOCALE_DIAG_DIR_MISSING as DIAG_DIR_MISSING, LOCALE_DIAG_DIR_ORPHAN as DIAG_DIR_ORPHAN, LOCALE_DIAG_EXPLAIN_UNKNOWN as DIAG_LOCALE_EXPLAIN_UNKNOWN, LOCALE_DIAG_FALLBACK_CYCLE as DIAG_FALLBACK_CYCLE, LOCALE_DIAG_FALLBACK_UNKNOWN as DIAG_FALLBACK_UNKNOWN, LOCALE_DIAG_FORMATTER_CONTEXT_INCOMPLETE as DIAG_FORMATTER_CONTEXT_INCOMPLETE, LOCALE_DIAG_FORMATTER_VERSION_MISMATCH as DIAG_FORMATTER_VERSION_MISMATCH, LOCALE_DIAG_HARDCODED_TEXT as DIAG_LOCALE_HARDCODED_TEXT, LOCALE_DIAG_HOST_MESSAGE_DIVERGENCE as DIAG_LOCALE_HOST_MESSAGE_DIVERGENCE, LOCALE_DIAG_HREFLANG_INCOMPLETE as DIAG_LOCALE_HREFLANG_INCOMPLETE, LOCALE_DIAG_ID_COLLISION as DIAG_ID_COLLISION, LOCALE_DIAG_ID_INVALID as DIAG_ID_INVALID, LOCALE_DIAG_LAYOUT_ILLEGAL as DIAG_LAYOUT_ILLEGAL, LOCALE_DIAG_LINK_HARDCODED_PATH as DIAG_LOCALE_LINK_HARDCODED_PATH, LOCALE_DIAG_MACHINE_DEFAULT_FORBIDDEN as DIAG_LOCALE_MACHINE_DEFAULT_FORBIDDEN, LOCALE_DIAG_MANIFEST_MISSING as DIAG_MANIFEST_MISSING, LOCALE_DIAG_MESSAGE_ARRAY_FORBIDDEN as DIAG_MESSAGE_ARRAY_FORBIDDEN, LOCALE_DIAG_MESSAGE_DYNAMIC_ID_UNBOUNDED as DIAG_MESSAGE_DYNAMIC_ID_UNBOUNDED, LOCALE_DIAG_MESSAGE_HTML_FORBIDDEN as DIAG_MESSAGE_HTML_FORBIDDEN, LOCALE_DIAG_MESSAGE_MISSING_DEFAULT as DIAG_MESSAGE_MISSING_DEFAULT, LOCALE_DIAG_MESSAGE_MISSING_VARIANT as DIAG_MESSAGE_MISSING_VARIANT, LOCALE_DIAG_MESSAGE_MIXED_LOCALE as DIAG_MESSAGE_MIXED_LOCALE, LOCALE_DIAG_MESSAGE_PARAMETER_MISMATCH as DIAG_MESSAGE_PARAMETER_MISMATCH, LOCALE_DIAG_MESSAGE_SYNTAX_INVALID as DIAG_MESSAGE_SYNTAX_INVALID, LOCALE_DIAG_MESSAGE_UNUSED as DIAG_MESSAGE_UNUSED, LOCALE_DIAG_META_LOCALE_MISMATCH as DIAG_LOCALE_META_LOCALE_MISMATCH, LOCALE_DIAG_MINI_CROSS_PACKAGE_UNPROVEN as DIAG_LOCALE_MINI_CROSS_PACKAGE_UNPROVEN, LOCALE_DIAG_NATIVE_PACK_APP_MISMATCH as DIAG_LOCALE_NATIVE_PACK_APP_MISMATCH, LOCALE_DIAG_NATIVE_PACK_HAS_JS as DIAG_LOCALE_NATIVE_PACK_HAS_JS, LOCALE_DIAG_NATIVE_PACK_UNSIGNED as DIAG_LOCALE_NATIVE_PACK_UNSIGNED, LOCALE_DIAG_PREFIX_OMIT_WITHOUT_REDIRECT as DIAG_LOCALE_PREFIX_OMIT_WITHOUT_REDIRECT, LOCALE_DIAG_PSEUDO_PRODUCTION_FORBIDDEN as DIAG_LOCALE_PSEUDO_PRODUCTION_FORBIDDEN, LOCALE_DIAG_ROUTE_COLLISION as DIAG_LOCALE_ROUTE_COLLISION, LOCALE_DIAG_SERVER_FORMAT_WITHOUT_CONTEXT as DIAG_LOCALE_SERVER_FORMAT_WITHOUT_CONTEXT, LOCALE_DIAG_SERVER_TRANSLATED_ERROR as DIAG_LOCALE_SERVER_TRANSLATED_ERROR, LOCALE_DIAG_STALE_GENERATION as DIAG_LOCALE_STALE_GENERATION, LOCALE_DIAG_TRANSITION_LOAD_FAILED as DIAG_LOCALE_TRANSITION_LOAD_FAILED, LOCALE_DIAG_TRANSITION_PARTIAL as DIAG_LOCALE_TRANSITION_PARTIAL, LOCALE_DIAG_TRANSITION_UNSUPPORTED as DIAG_LOCALE_TRANSITION_UNSUPPORTED, LOCALE_DIFF_SCHEMA, LOCALE_EXPLAIN_SCHEMA, LOCALE_EXTRACT_SCHEMA, LOCALE_FALLBACK_RESOLUTION_SCHEMA, LOCALE_FORMATTER_CONTEXT_SCHEMA, LOCALE_LINK_RESOLUTION_SCHEMA, LOCALE_MANIFEST_SCHEMA, LOCALE_MESSAGE_CATALOG_SCHEMA as MESSAGE_CATALOG_SCHEMA, LOCALE_MESSAGE_NODE_SCHEMA as MESSAGE_NODE_SCHEMA, LOCALE_MINI_PACKAGE_PROOF_SCHEMA, LOCALE_NATIVE_PACK_SCHEMA, LOCALE_PAGE_META_SCHEMA, LOCALE_PROTOCOL, LOCALE_PSEUDO_SCHEMA, LOCALE_RENAME_SCHEMA, LOCALE_ROUTE_REALIZATION_SCHEMA, LOCALE_ROUTER_CHECK_SCHEMA, LOCALE_RUNTIME_CHECK_SCHEMA, LOCALE_SERVER_ERROR_ENVELOPE_SCHEMA, LOCALE_TRANSITION_SCHEMA, LOCALE_TYPED_MODULE_SCHEMA, LOCALE_VIRTUAL_MODULE_PREFIX, } from '@vmz/protocol';
|
|
7
6
|
/** Reserved first-level names under /locales (not LocaleId dirs). */
|
package/dist/locale-tooling.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Explain one MessageId: definition, params, variants, fallback, delivery reachability.
|
|
3
3
|
* @param {{
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* messageId: string,
|
|
5
|
+
* locale?: string|null,
|
|
6
|
+
* deliveryId?: string|null,
|
|
7
|
+
* checkReport: any,
|
|
8
8
|
* }} input
|
|
9
9
|
*/
|
|
10
10
|
export declare function explainLocaleMessage(input: any): {
|
|
@@ -48,9 +48,9 @@ export declare function explainLocaleMessage(input: any): {
|
|
|
48
48
|
/**
|
|
49
49
|
* Diff two locales' catalogs.
|
|
50
50
|
* @param {{
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
51
|
+
* baseLocale: string,
|
|
52
|
+
* targetLocale: string,
|
|
53
|
+
* messages: Array<{ messageId: string, variants: Record<string, { template: string, params?: any[] }> }>,
|
|
54
54
|
* }} input
|
|
55
55
|
*/
|
|
56
56
|
export declare function diffLocaleCatalogs(input: any): {
|
|
@@ -85,9 +85,9 @@ export declare function extractHardcodedText(projectRoot: any, opts?: {}): {
|
|
|
85
85
|
* Pseudo-localize a source locale for layout/overflow testing.
|
|
86
86
|
* Preserves ICU placeholders; marks provenance — never a production fallback.
|
|
87
87
|
* @param {{
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
88
|
+
* sourceLocale: string,
|
|
89
|
+
* messages: Array<{ messageId: string, variants: Record<string, { template: string }> }>,
|
|
90
|
+
* production?: boolean,
|
|
91
91
|
* }} input
|
|
92
92
|
*/
|
|
93
93
|
export declare function pseudoLocalizeCatalog(input: any): {
|
|
@@ -102,9 +102,9 @@ export declare function pseudoLocalizeCatalog(input: any): {
|
|
|
102
102
|
/**
|
|
103
103
|
* Cross-host conformance: same MessageId set + catalog hashes + formatter version.
|
|
104
104
|
* @param {{
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
105
|
+
* manifest: any,
|
|
106
|
+
* messages: any[],
|
|
107
|
+
* routeIds?: string[],
|
|
108
108
|
* }} input
|
|
109
109
|
*/
|
|
110
110
|
export declare function checkLocaleConformance(input: any): {
|