From 72db4e8ecdc51f0083c9154465dd1ef41ef6df48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=BA=AF?= Date: Tue, 22 Dec 2020 19:31:25 +0800 Subject: [PATCH] feat: plugin-locale 3% --- packages/fes-plugin-locale/index.js | 3 +++ packages/fes-plugin-locale/package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/fes-plugin-locale/index.js b/packages/fes-plugin-locale/index.js index 42a838c4..29ec4699 100644 --- a/packages/fes-plugin-locale/index.js +++ b/packages/fes-plugin-locale/index.js @@ -4,6 +4,9 @@ import { createI18n, useI18n } from 'vue-i18n'; // 动态变更 local // 其他组件能拿到 t 函数 // local 变更后,能通知到其他函数 +// locales目录下以语言简称为子文件下存放配置信息 +// 其他插件可以运行时修改配置 +// 所有插件使用一个语言和配置 export default { install(app, options, ctx) { diff --git a/packages/fes-plugin-locale/package.json b/packages/fes-plugin-locale/package.json index 1206821d..85bb4410 100644 --- a/packages/fes-plugin-locale/package.json +++ b/packages/fes-plugin-locale/package.json @@ -10,6 +10,6 @@ "author": "", "license": "MIT", "dependencies": { - "vue-i18n": "^9.0.0-beta.2" + "vue-i18n": "^9.0.0-beta.15" } }