@menapo/vi18n 0.1.1 → 0.2.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 +19 -0
- package/dist/{apply-Bre-lY9J.js → apply-Bg-3rB2m.js} +69 -89
- package/dist/{captured-Bj8bO6vd.js → captured-DfLk50Ji.js} +196 -217
- package/dist/{check-BIKEuu6B.js → check-CunekuYs.js} +76 -85
- package/dist/cli.js +2 -3
- package/dist/{collect-Cx4_SKOe.js → collect-CYATDjdo.js} +1 -2
- package/dist/collisions-CDSdtLQm.js +215 -0
- package/dist/{compile-Cc97JaW2.js → compile-DqkofbiO.js} +376 -331
- package/dist/compile-hva0qjhZ.js +240 -0
- package/dist/concurrency-BCY_4zcr.js +1 -0
- package/dist/concurrency-Dy2ny50V.js +107 -0
- package/dist/config.d.ts +1 -5
- package/dist/config.js +4 -5
- package/dist/{types-D3QGM8XO.js → diagnostics-LgIWyeSp.js} +28 -27
- package/dist/{dir-zw6bGMKQ.js → dir-TGLYuOZb.js} +34 -37
- package/dist/{duplicates-yuRljQ6h.js → duplicates-8cudcHNj.js} +10 -27
- package/dist/engine-ecRD8-IE.js +556 -0
- package/dist/engine.d.ts +1 -5
- package/dist/engine.js +297 -168
- package/dist/exchange-DjwlrTQ9.js +41 -0
- package/dist/{exclude-Du-Zd_qI.js → exclude-BFETmvde.js} +2 -3
- package/dist/{export-C9Sy6UWv.js → export-D2tsqWIr.js} +17 -38
- package/dist/{extract-C3S8btx0.js → extract-BxYchVmY.js} +114 -82
- package/dist/{formats-9unqj_fZ.js → formats-BaryZ2N7.js} +352 -276
- package/dist/fs-ezCMZeDV.js +52 -0
- package/dist/i18next-COO6o0tX.js +1907 -0
- package/dist/i18next-Dr7DCQlQ.js +1 -0
- package/dist/{import-nANvQutw.js → import-vSC29Cn4.js} +81 -75
- package/dist/index.d.ts +1 -13
- package/dist/index.js +14 -16
- package/dist/{init-C2ScuW6a.js → init-Cc7A-8VX.js} +466 -501
- package/dist/{library-D5CWvTQs.js → library-tp_xqzSY.js} +975 -451
- package/dist/lingui-BnnlqGXT.js +902 -0
- package/dist/lint.d.ts +0 -4
- package/dist/lint.js +70 -82
- package/dist/{load-gW-oJt1Q.js → load-BSIeGJ5v.js} +275 -148
- package/dist/{load-CQRz4PpM.js → load-SSrAeJVB.js} +1214 -1116
- package/dist/{locales-DX4MOBFE.js → locales-D0U-yVRm.js} +271 -237
- package/dist/{lsp-RMMMc88P.js → lsp-DvC11pBZ.js} +4 -5
- package/dist/{match-BGr8EXB3.js → match-BLDcj610.js} +11 -4
- package/dist/{mcp-CHVwBoRP.js → mcp-D2zzOTBy.js} +4 -5
- package/dist/{merge-driver-BTX87aVm.js → merge-driver-BLI8OtAc.js} +138 -122
- package/dist/migrate-1r43OBfe.js +1 -0
- package/dist/migrate-ChDGhlC-.js +2169 -0
- package/dist/{openai-CTaMDcl-.js → openai-CLn4puY8.js} +128 -87
- package/dist/{output-DWE3SIUA.js → output-D5tAt8q4.js} +15 -9
- package/dist/parse.d.ts +1 -3
- package/dist/parse.js +7 -8
- package/dist/{pipeline-C9Dbotkh.js → pipeline-BJSkkRYC.js} +387 -359
- package/dist/{pipeline-DbX6rlo5.js → pipeline-BeCc441z.js} +1 -1
- package/dist/project-B5KIO0q-.js +544 -0
- package/dist/{pseudo-DRv30iN5.js → pseudo-B2DUpoLu.js} +126 -3
- package/dist/{raw-C4Y6vyGY.js → raw-YsYZMS9n.js} +52 -29
- package/dist/react-intl-C8JehBBL.js +634 -0
- package/dist/rename-ZVGq9ZG1.js +577 -0
- package/dist/repeated-uuI1tUGg.js +85 -0
- package/dist/restore-xlBIrtRt.js +199 -0
- package/dist/rewrite-BwzXoBiA.js +415 -0
- package/dist/{rich-DCUKl5HM.js → rich-ApY1Dm4S.js} +35 -28
- package/dist/rolldown-runtime-C1I3wEg2.js +43 -0
- package/dist/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
- package/dist/run-CQ9pDLSa.js +674 -0
- package/dist/scan-worker.d.ts +2 -4
- package/dist/scan-worker.js +1 -1
- package/dist/{scoped-BMYpSthj.js → scoped-h3KE8XWW.js} +3 -4
- package/dist/{server-Da1Ot9IN.js → server-Br8tAuG2.js} +312 -386
- package/dist/{server-deBOq2vq.js → server-DJRpUQVZ.js} +1059 -333
- package/dist/server.d.ts +1 -17
- package/dist/server.js +419 -379
- package/dist/{sitemap-DJXzKoza.js → sitemap-CSAkm6oi.js} +21 -33
- package/dist/{sources-D19czDSA.js → sources-DNVbYsgs.js} +713 -373
- package/dist/{status-zr4jY59Y.js → status-q6M3rBrh.js} +30 -30
- package/dist/{stdio-FPOKQAgu.js → stdio-D9kTzyqB.js} +2 -4
- package/dist/{stdio-CVaJfxA7.js → stdio-FWIVU3P4.js} +1 -2
- package/dist/sync-BNIAwMhR.js +1352 -0
- package/dist/{t-DC-c9zE5.js → t-gvEXx25s.js} +76 -53
- package/dist/test.d.ts +5 -16
- package/dist/test.js +126 -56
- package/dist/translate-BP4iVhOR.js +336 -0
- package/dist/{ts-BaU5yOf0.js → ts-BX6kwig5.js} +25 -14
- package/dist/{types-DtvQ7UdD.js → types-3kwyaCAm.js} +1 -2
- package/dist/{types-DsdWBG0b.d.ts → types-B4wNX6PA.d.ts} +6 -8
- package/dist/{types-CgUCkFU1.d.ts → types-_4UdFhR9.d.ts} +24 -21
- package/dist/types-xR2exI3L.js +42 -0
- package/dist/{units-CQ5Q99RC.js → units-DPPfCN7j.js} +7 -16
- package/dist/{url-CRfCOhUI.js → url-Bpc6wLea.js} +24 -11
- package/dist/{url-CsBkRaJy.js → url-D2_VlEeH.js} +25 -12
- package/dist/{validate-BxpupdAf.js → validate-CgzaDdOY.js} +690 -377
- package/dist/{validate-D6DJepZv.js → validate-PGgMsasz.js} +3 -5
- package/dist/{version-Byqi2guX.js → version-DC-J5WvV.js} +3 -5
- package/dist/{vite-scan-CT_vsp4g.js → vite-scan-kM8Ta3rO.js} +87 -92
- package/dist/vite.d.ts +2 -6
- package/dist/vite.js +6500 -6032
- package/dist/vue-i18n-_uIXlFVh.js +806 -0
- package/dist/{which-BOemZ5Q8.js → which-DFWk_KwN.js} +44 -37
- package/dist/{worker-84U6uYB3.js → worker-zlhNj4y3.js} +454 -608
- package/package.json +5 -5
- package/dist/check-HsmmpJZg.js +0 -1
- package/dist/codec-DuvU2VQy.js +0 -207
- package/dist/collisions-CfpZU8e4.js +0 -217
- package/dist/compile-BaDh0cHG.js +0 -245
- package/dist/concurrency-C9UUWuDC.js +0 -96
- package/dist/concurrency-DONL7t4V.js +0 -1
- package/dist/engine-C2ENBRJe.js +0 -531
- package/dist/i18next-9HAoxwUI.js +0 -1
- package/dist/i18next-BEJgv_S8.js +0 -1596
- package/dist/lingui-zUiCl9Um.js +0 -833
- package/dist/messages-BfjIExyB.js +0 -166
- package/dist/migrate-IpLDMXmq.js +0 -1484
- package/dist/migrate-rCQuOGsf.js +0 -1
- package/dist/project-Bw9UPIdx.js +0 -1046
- package/dist/project-C4GpaN-n.js +0 -381
- package/dist/react-intl-BP0u-D5m.js +0 -519
- package/dist/restore-CiYv-jxS.js +0 -175
- package/dist/rewrite-EsIw_lsq.js +0 -803
- package/dist/run-BEcnBbu-.js +0 -694
- package/dist/runtime-DTMmliT1.js +0 -64
- package/dist/sync-B9V2KFwb.js +0 -658
- package/dist/translate-CQnJfLjO.js +0 -299
- package/dist/types-wSh9fCBY.js +0 -11
- package/dist/vue-i18n-g0iGy6CZ.js +0 -651
package/dist/server.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { h as Scope, m as RuntimeConfig, y as Translator } from "./types-
|
|
2
|
-
//#region src/server/types.d.ts
|
|
1
|
+
import { h as Scope, m as RuntimeConfig, y as Translator } from "./types-B4wNX6PA.js";
|
|
3
2
|
/** Options of `handle()` and `withRequest()`. */
|
|
4
3
|
interface HandleOptions {
|
|
5
4
|
/** CSP nonce for the payload `<script>` elements. */
|
|
@@ -74,8 +73,6 @@ interface RegisterCatalogsOptions {
|
|
|
74
73
|
*/
|
|
75
74
|
sources?: () => Promise<unknown>;
|
|
76
75
|
}
|
|
77
|
-
//#endregion
|
|
78
|
-
//#region src/server/als.d.ts
|
|
79
76
|
/** Framework request stores (SvelteKit `getRequestEvent()`) supply the scope; null removes it. */
|
|
80
77
|
export declare function setScopeResolver(resolve: (() => Scope | undefined) | null): void;
|
|
81
78
|
/**
|
|
@@ -86,8 +83,6 @@ export declare function setScopeResolver(resolve: (() => Scope | undefined) | nu
|
|
|
86
83
|
* frameworks may run render code outside the async context `handle` opened.
|
|
87
84
|
*/
|
|
88
85
|
export declare function getScope(): Scope | undefined;
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region src/server/handle.d.ts
|
|
91
86
|
/**
|
|
92
87
|
* Negotiates the locale, answers the canonical or root redirect, renders
|
|
93
88
|
* `next(request)` (the original request: rewriting stays with the router)
|
|
@@ -107,15 +102,11 @@ export declare function withRequest<T>(request: Request, fn: () => T | Promise<T
|
|
|
107
102
|
* resolver, its payload and its `<html>` attributes all follow.
|
|
108
103
|
*/
|
|
109
104
|
export declare function scopeLocale(locale: string): Promise<void>;
|
|
110
|
-
//#endregion
|
|
111
|
-
//#region src/server/negotiate.d.ts
|
|
112
105
|
/**
|
|
113
106
|
* The locale `request` would render in, the redirect `handle()` would
|
|
114
107
|
* answer, and the header its response varies on.
|
|
115
108
|
*/
|
|
116
109
|
export declare function negotiate(request: Request): NegotiateResult;
|
|
117
|
-
//#endregion
|
|
118
|
-
//#region src/server/payload.d.ts
|
|
119
110
|
/**
|
|
120
111
|
* The payload element for HTML-string hooks (Nuxt `render:html`), with its
|
|
121
112
|
* preload links under `ssr.payload: "preload"`: the ids rendered so far in
|
|
@@ -130,8 +121,6 @@ export declare function htmlAttributes(): {
|
|
|
130
121
|
lang: string;
|
|
131
122
|
dir: "ltr" | "rtl";
|
|
132
123
|
};
|
|
133
|
-
//#endregion
|
|
134
|
-
//#region src/server/seo.d.ts
|
|
135
124
|
/**
|
|
136
125
|
* hreflang links for every locale plus `x-default` (the source locale's
|
|
137
126
|
* URL), the self-canonical (`origin + pathname`: queries and fragments are
|
|
@@ -153,11 +142,7 @@ export declare function localizedPaths(paths: readonly string[]): string[];
|
|
|
153
142
|
export declare function localizedParams(key?: string): {
|
|
154
143
|
params: Record<string, string | undefined>;
|
|
155
144
|
}[];
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region src/server/catalogs.d.ts
|
|
158
145
|
export declare function registerCatalogs(loaders: Record<string, () => Promise<unknown>>, options: RegisterCatalogsOptions): void;
|
|
159
|
-
//#endregion
|
|
160
|
-
//#region src/server/translator.d.ts
|
|
161
146
|
/**
|
|
162
147
|
* Runs `fn` with `t` and `fmt` bound to `locale` (and the zone in `options`),
|
|
163
148
|
* also inside a request: an e-mail for another user renders in theirs.
|
|
@@ -165,5 +150,4 @@ export declare function registerCatalogs(loaders: Record<string, () => Promise<u
|
|
|
165
150
|
export declare function withLocale<T>(locale: string, fn: () => T | Promise<T>, options?: TranslatorOptions): Promise<Awaited<T>>;
|
|
166
151
|
/** `t`, `rich*` and `fmt` bound to one locale and zone, for code that cannot run inside a scope. */
|
|
167
152
|
export declare function createTranslator(locale: string, options?: TranslatorOptions): Promise<Translator>;
|
|
168
|
-
//#endregion
|
|
169
153
|
export type { Alternates, HandleOptions, NegotiateResult, NegotiationSource, RegisterCatalogsOptions, RuntimeConfig, Scope, Translator, TranslatorOptions };
|