From d84f774f673a51211a5f76c4f221ea3485b50a2c Mon Sep 17 00:00:00 2001 From: wxzhang Date: Tue, 10 Jan 2023 16:48:57 +0800 Subject: [PATCH] update --- packages/babel/package.json | 6 +++--- packages/cli/languages/index.js | 10 +++++----- packages/cli/package.json | 6 +++--- packages/runtime/package.json | 10 +++++----- packages/utils/package.json | 6 +++--- packages/vite/package.json | 6 +++--- 6 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/babel/package.json b/packages/babel/package.json index 9133301..626c6ba 100644 --- a/packages/babel/package.json +++ b/packages/babel/package.json @@ -1,6 +1,6 @@ { "name": "@voerkai18n/babel", - "version": "1.0.24", + "version": "1.0.25", "description": "Babel插件,实现自动导入t函数和自动文本映射", "main": "index.js", "homepage": "https://gitee.com/zhangfisher/voerka-i18n", @@ -20,5 +20,5 @@ "devDependencies": { "@voerkai18n/autopublish": "workspace:^1.0.2" }, - "lastPublish": "2022-08-20T12:54:37.848Z" -} + "lastPublish": "2023-01-10T15:04:00+08:00" +} \ No newline at end of file diff --git a/packages/cli/languages/index.js b/packages/cli/languages/index.js index a683348..9fcc61f 100644 --- a/packages/cli/languages/index.js +++ b/packages/cli/languages/index.js @@ -1,11 +1,11 @@ const messageIds = require("./idMap") -const { translate,i18nScope } = require("./runtime.js") -const defaultFormatters = require("./formatters/zh.js") +const { translate,i18nScope } = require("@voerkai18n/runtime") +const defaultFormatters = require("@voerkai18n/runtime/formatters/zh.js") const activeFormatters = defaultFormatters - const defaultMessages = require("./zh.js") // 默认语言包 -const activeMessages = defaultMessages +const activeMessages = defaultMessages + // 语言配置文件 const scopeSettings = { @@ -39,7 +39,7 @@ const loaders = { } // 语言作用域 -const scope = new i18nScope({ +const scope = new VoerkaI18nScope({ ...scopeSettings, // languages,defaultLanguage,activeLanguage,namespaces,formatters id : "@voerkai18n/cli", // 当前作用域的id,自动取当前工程的package.json的name debug : false, // 是否在控制台输出高度信息 diff --git a/packages/cli/package.json b/packages/cli/package.json index 4897c99..58ce2c9 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@voerkai18n/cli", - "version": "1.0.39", + "version": "1.0.40", "description": "命令行工具,用来初始化/提取/编译/自动翻译等工具链", "main": "index.js", "homepage": "https://gitee.com/zhangfisher/voerka-i18n", @@ -50,5 +50,5 @@ "devDependencies": { "@voerkai18n/autopublish": "workspace:^1.0.2" }, - "lastPublish": "2022-08-26T09:47:30.913Z" -} + "lastPublish": "2023-01-10T15:03:54+08:00" +} \ No newline at end of file diff --git a/packages/runtime/package.json b/packages/runtime/package.json index e2fde1f..77daf63 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -1,15 +1,15 @@ { "name": "@voerkai18n/runtime", - "version": "1.1.6", + "version": "1.1.7", "description": "核心运行时", "main": "./dist/index.cjs", "module": "./dist/index.esm.js", - "typings":"./index.d.ts", + "typings": "./index.d.ts", "homepage": "https://gitee.com/zhangfisher/voerka-i18n", "repository": { "type": "git", "url": "git+https://gitee.com/zhangfisher/voerka-i18n.git" - }, + }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "rollup -c", @@ -37,5 +37,5 @@ "rollup-plugin-clear": "^2.0.7", "rollup-plugin-terser": "^7.0.2" }, - "lastPublish": "2022-08-26T09:47:21.472Z" -} + "lastPublish": "2023-01-10T15:03:14+08:00" +} \ No newline at end of file diff --git a/packages/utils/package.json b/packages/utils/package.json index d36aae5..ba71b17 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@voerkai18n/utils", - "version": "1.0.13", + "version": "1.0.14", "description": "公共工具库", "main": "index.js", "scripts": { @@ -16,5 +16,5 @@ "devDependencies": { "@voerkai18n/autopublish": "workspace:^1.0.2" }, - "lastPublish": "2022-08-20T12:54:15.135Z" -} + "lastPublish": "2023-01-10T15:02:50+08:00" +} \ No newline at end of file diff --git a/packages/vite/package.json b/packages/vite/package.json index 735b1f8..ea46f50 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -1,6 +1,6 @@ { "name": "@voerkai18n/vite", - "version": "1.0.13", + "version": "1.0.14", "description": "Vite插件,提供自动插入翻译函数和文本映射等功能", "main": "index.js", "scripts": { @@ -15,5 +15,5 @@ "devDependencies": { "@voerkai18n/autopublish": "workspace:^1.0.2" }, - "lastPublish": "2022-08-20T12:54:54.542Z" -} + "lastPublish": "2023-01-10T15:04:07+08:00" +} \ No newline at end of file