@flashbuy/language
v1.0.5
Published
语言包
Downloads
11
Maintainers
Readme
flashbuy-language 语言包
使用教程
快速开始
安装:npm install flashbuy-language
在main.js中引入
import { initLanguage , Locale} from 'flashbuy-language'
const i18n = initLanguage(Locale.zh_CN)
// 挂载vue
const app = new Vue({
i18n,
...App,
});
调用方法:
1、在vue文件中调用 this.$t('key')
2、在js中调用 $t('key')
合并第三方UI语言包
import { initLanguage , Locale} from 'flashbuy-language'
import zh_CN from 'view-design/dist/locale/zh-CN';
import ja_JP from 'view-design/dist/locale/ja-JP';
import en_US from 'view-design/dist/locale/en-US';
const i18n = initLanguage(Locale.zh_CN, {zh_CN,en_US, ja_JP})