lsr-text-catalog 0.1.2
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/LICENSE +21 -0
- package/README.md +184 -0
- package/dist/compiled/index.d.ts +12 -0
- package/dist/compiled/index.d.ts.map +1 -0
- package/dist/compiled/index.js +39 -0
- package/dist/compiled/index.js.map +1 -0
- package/dist/language.d.ts +4 -0
- package/dist/language.d.ts.map +1 -0
- package/dist/language.js +50 -0
- package/dist/language.js.map +1 -0
- package/dist/runtime/index.d.ts +17 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +68 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/types.d.ts +37 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/vite/index.d.ts +21 -0
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/index.js +559 -0
- package/dist/vite/index.js.map +1 -0
- package/dist/vite/manifest.d.ts +24 -0
- package/dist/vite/manifest.d.ts.map +1 -0
- package/dist/vite/manifest.js +110 -0
- package/dist/vite/manifest.js.map +1 -0
- package/dist/vite/transform.d.ts +5 -0
- package/dist/vite/transform.d.ts.map +1 -0
- package/dist/vite/transform.js +873 -0
- package/dist/vite/transform.js.map +1 -0
- package/dist/vite/types.d.ts +23 -0
- package/dist/vite/types.d.ts.map +1 -0
- package/dist/vite/types.js +2 -0
- package/dist/vite/types.js.map +1 -0
- package/package.json +99 -0
- package/src/compiled/index.ts +81 -0
- package/src/language.ts +62 -0
- package/src/runtime/index.ts +126 -0
- package/src/types.ts +55 -0
- package/src/vite/index.ts +642 -0
- package/src/vite/manifest.ts +158 -0
- package/src/vite/transform.ts +1228 -0
- package/src/vite/types.ts +27 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** Validated build-only source data; never imported by the client runtime. */
|
|
2
|
+
export interface TextCatalogSnapshot {
|
|
3
|
+
readonly texts: Readonly<Record<string, string>>;
|
|
4
|
+
readonly htmlKeys: Readonly<Record<string, true>>;
|
|
5
|
+
readonly plurals: Readonly<
|
|
6
|
+
Record<string, { readonly one: string; readonly plural: string }>
|
|
7
|
+
>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface CatalogIdentity {
|
|
11
|
+
readonly sourceLocale: string;
|
|
12
|
+
readonly locales: readonly string[];
|
|
13
|
+
readonly domain: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type CatalogModule = "copy" | "catalog";
|
|
17
|
+
|
|
18
|
+
export interface TextCatalogTransformOptions {
|
|
19
|
+
readonly root: string;
|
|
20
|
+
/** Resolved consumer authoring facade used for emitted runtime-adapter imports. */
|
|
21
|
+
readonly facade: string;
|
|
22
|
+
/** Resolve module identities through Vite, not through guessed aliases or filenames. */
|
|
23
|
+
readonly resolveModule: (
|
|
24
|
+
specifier: string,
|
|
25
|
+
importer: string,
|
|
26
|
+
) => CatalogModule | undefined | Promise<CatalogModule | undefined>;
|
|
27
|
+
}
|