@lokascript/i18n 1.1.0 → 1.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/dist/browser.d.cts +2 -1
- package/dist/browser.d.ts +2 -1
- package/dist/dictionaries/index.cjs +5243 -0
- package/dist/dictionaries/index.cjs.map +1 -0
- package/dist/dictionaries/index.d.cts +203 -0
- package/dist/dictionaries/index.d.ts +203 -0
- package/dist/dictionaries/index.js +5212 -0
- package/dist/dictionaries/index.js.map +1 -0
- package/dist/index.d.cts +8 -123
- package/dist/index.d.ts +8 -123
- package/dist/plugins/vite.cjs +5681 -0
- package/dist/plugins/vite.cjs.map +1 -0
- package/dist/plugins/vite.d.cts +13 -0
- package/dist/plugins/vite.d.ts +13 -0
- package/dist/plugins/vite.js +5679 -0
- package/dist/plugins/vite.js.map +1 -0
- package/dist/plugins/webpack.cjs +5617 -0
- package/dist/plugins/webpack.cjs.map +1 -0
- package/dist/plugins/webpack.d.cts +24 -0
- package/dist/plugins/webpack.d.ts +24 -0
- package/dist/plugins/webpack.js +5615 -0
- package/dist/plugins/webpack.js.map +1 -0
- package/dist/{transformer-Ckask-yw.d.cts → transformer-BBKJJ2vd.d.ts} +3 -122
- package/dist/{transformer-Ckask-yw.d.ts → transformer-D8MM2_rz.d.cts} +3 -122
- package/dist/types-naTJIIaT.d.cts +122 -0
- package/dist/types-naTJIIaT.d.ts +122 -0
- package/package.json +4 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface Compiler {
|
|
2
|
+
hooks: any;
|
|
3
|
+
webpack: any;
|
|
4
|
+
}
|
|
5
|
+
interface WebpackPluginInstance {
|
|
6
|
+
apply(compiler: Compiler): void;
|
|
7
|
+
}
|
|
8
|
+
interface HyperscriptI18nWebpackOptions {
|
|
9
|
+
sourceLocale?: string;
|
|
10
|
+
targetLocale?: string;
|
|
11
|
+
preserveOriginal?: boolean;
|
|
12
|
+
attributes?: string[];
|
|
13
|
+
test?: RegExp;
|
|
14
|
+
}
|
|
15
|
+
declare class HyperscriptI18nWebpackPlugin implements WebpackPluginInstance {
|
|
16
|
+
private options;
|
|
17
|
+
private translator;
|
|
18
|
+
constructor(options?: HyperscriptI18nWebpackOptions);
|
|
19
|
+
apply(compiler: Compiler): void;
|
|
20
|
+
private processAsset;
|
|
21
|
+
private processHtml;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { type HyperscriptI18nWebpackOptions, HyperscriptI18nWebpackPlugin };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface Compiler {
|
|
2
|
+
hooks: any;
|
|
3
|
+
webpack: any;
|
|
4
|
+
}
|
|
5
|
+
interface WebpackPluginInstance {
|
|
6
|
+
apply(compiler: Compiler): void;
|
|
7
|
+
}
|
|
8
|
+
interface HyperscriptI18nWebpackOptions {
|
|
9
|
+
sourceLocale?: string;
|
|
10
|
+
targetLocale?: string;
|
|
11
|
+
preserveOriginal?: boolean;
|
|
12
|
+
attributes?: string[];
|
|
13
|
+
test?: RegExp;
|
|
14
|
+
}
|
|
15
|
+
declare class HyperscriptI18nWebpackPlugin implements WebpackPluginInstance {
|
|
16
|
+
private options;
|
|
17
|
+
private translator;
|
|
18
|
+
constructor(options?: HyperscriptI18nWebpackOptions);
|
|
19
|
+
apply(compiler: Compiler): void;
|
|
20
|
+
private processAsset;
|
|
21
|
+
private processHtml;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { type HyperscriptI18nWebpackOptions, HyperscriptI18nWebpackPlugin };
|