@weapp-vite/i18n 0.2.1 → 0.2.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/compiler.d.mts +8 -8
- package/dist/runtime.d.mts +2 -2
- package/package.json +2 -2
package/dist/compiler.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { _ as I18nPlaceholderToken, a as I18nCompileOptions, d as I18nLocaleFileInput, h as I18nMessages, i as I18nCatalog, n as CompileNativeI18nResult, o as I18nCompiledMessages, p as I18nMessageToken, t as CompileNativeI18nOptions } from "./types.mjs";
|
|
2
2
|
//#region src/compiler.d.ts
|
|
3
|
-
declare function compileI18nMessage(message: string): I18nMessageToken[];
|
|
4
|
-
declare function compileI18nMessages(messages: I18nMessages): I18nCompiledMessages;
|
|
5
|
-
declare function compileI18nCatalog(files: I18nLocaleFileInput[], options: I18nCompileOptions): I18nCatalog;
|
|
6
|
-
declare function generateI18nCatalogModuleSource(catalog: I18nCatalog): string;
|
|
7
|
-
declare function generateI18nWxsSource(catalog: I18nCatalog): string;
|
|
8
|
-
declare function generateI18nRuntimeSource(catalog: I18nCatalog): string;
|
|
3
|
+
export declare function compileI18nMessage(message: string): I18nMessageToken[];
|
|
4
|
+
export declare function compileI18nMessages(messages: I18nMessages): I18nCompiledMessages;
|
|
5
|
+
export declare function compileI18nCatalog(files: I18nLocaleFileInput[], options: I18nCompileOptions): I18nCatalog;
|
|
6
|
+
export declare function generateI18nCatalogModuleSource(catalog: I18nCatalog): string;
|
|
7
|
+
export declare function generateI18nWxsSource(catalog: I18nCatalog): string;
|
|
8
|
+
export declare function generateI18nRuntimeSource(catalog: I18nCatalog): string;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/native.d.ts
|
|
11
|
-
declare function compileNativeI18n(options: CompileNativeI18nOptions): Promise<CompileNativeI18nResult>;
|
|
11
|
+
export declare function compileNativeI18n(options: CompileNativeI18nOptions): Promise<CompileNativeI18nResult>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export {
|
|
13
|
+
export type { CompileNativeI18nOptions, CompileNativeI18nResult, I18nCatalog, I18nCompileOptions, I18nLocaleFileInput, I18nMessageToken, I18nPlaceholderToken };
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as I18nHost, g as I18nOptions, i as I18nCatalog, l as I18nInstance, r as I18nBehavior, s as I18nGlobal, u as I18nLocaleChangeSubscription } from "./types.mjs";
|
|
2
2
|
//#region src/runtime.d.ts
|
|
3
|
-
declare function createI18n(options: I18nOptions | I18nCatalog, host?: Partial<I18nHost>): I18nInstance;
|
|
3
|
+
export declare function createI18n(options: I18nOptions | I18nCatalog, host?: Partial<I18nHost>): I18nInstance;
|
|
4
4
|
//#endregion
|
|
5
|
-
export {
|
|
5
|
+
export type { I18nBehavior, I18nCatalog, I18nGlobal, I18nHost, I18nInstance, I18nLocaleChangeSubscription, I18nOptions };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-vite/i18n",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "First-party i18n runtime and compiler for native WeChat mini programs",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@weapp-core/constants": "0.2.
|
|
67
|
+
"@weapp-core/constants": "0.2.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"miniprogram-api-typings": "^5.2.3"
|