diff --git a/packages/i18n/languages/en.yml b/packages/i18n/languages/en.yml index a1b3348d..02076024 100644 --- a/packages/i18n/languages/en.yml +++ b/packages/i18n/languages/en.yml @@ -1,3 +1,4 @@ +ms.i18n.completed: "Internationalization component initialization completed. Current Language: English" ms.ployfill.initialize: "Initialization Java Nashorn ployfill. Please wait..." ms.ployfill.completed: "Java Nashorn ployfill loading completed... Cost ({time}s)!" @@ -38,6 +39,7 @@ ms.plugin.manager.stage.exec.error: "§6Plugin §b{plugin} §6exec §d{executor} ms.plugin.manager.stage.load: "Loading" ms.plugin.manager.stage.enable: "Enabling" ms.plugin.manager.stage.disable: "Disabling" +ms.plugin.manager.build.error: "§6Load Plugin From §b{file} §6failed. §4Error: §c{error}" ms.plugin.manager.build.update: "Auto Update Plugin {name} ..." ms.plugin.manager.build.not.extends: "§4Found error plugin §b{source} §4it's not extends interfaces.Plugin, the plugin will be ignore!" ms.plugin.manager.build.exists: "§4Found duplicate plugin §b{exists} §4and §b{source}§4. the first plugin will be ignore!" diff --git a/packages/i18n/languages/zh_cn.yml b/packages/i18n/languages/zh_cn.yml index a03b4fc7..e0182c21 100644 --- a/packages/i18n/languages/zh_cn.yml +++ b/packages/i18n/languages/zh_cn.yml @@ -1,3 +1,4 @@ +ms.i18n.completed: "国际化组件 初始化完成 当前语言: 简体中文" ms.ployfill.initialize: "加载 Java Nashorn 补丁. 请稍候..." ms.ployfill.completed: "Java Nashorn 补丁 加载完成... 耗时 ({time}s)!" @@ -38,6 +39,7 @@ ms.plugin.manager.stage.exec.error: "§6插件 §b{plugin} §6执行 §d{executo ms.plugin.manager.stage.load: "加载" ms.plugin.manager.stage.enable: "启用" ms.plugin.manager.stage.disable: "关闭" +ms.plugin.manager.build.error: "§6从文件 §b{file} §6加载插件失败 §4错误: §c{error}" ms.plugin.manager.build.update: "自动更新插件 {name} ..." ms.plugin.manager.build.not.extends: "§4发现错误的插件 §b{source} §4未继承接口 interfaces.Plugin, 将不会被载入到服务器!" ms.plugin.manager.build.duplicate: "§4发现已存在插件 §b{exists} §4和 §b{source}§4 存在冲突. 已存在插件将会被替换!" diff --git a/packages/i18n/src/index.ts b/packages/i18n/src/index.ts index 1e8a8d6b..39501652 100644 --- a/packages/i18n/src/index.ts +++ b/packages/i18n/src/index.ts @@ -45,6 +45,7 @@ export class Translate { console.i18n = (name: string, param?: TranslateParam) => { console.log(this.translate(name, param)) } + console.i18n('ms.i18n.completed') } readYamlFile(dir: string, name: string) {