topkee-lang-picker-vue
v0.1.3
Published
<p> <a href="https://github.com/vuejs/vue"> <img src="https://img.shields.io/badge/vue->=3.2.13-blue.svg" alt="vue"> </a> <a href="#"> <img src="https://img.shields.io/badge/topkeeLangServiceJssdk->=0.0.1-blue.svg" alt="vue"> </a> </p>
Downloads
5
Readme
topkee多语言选择器组件
效果图
安装组件包
yarn add topkee-lang-picker-vue
或者 npm i topkee-lang-picker-vue
全局引用
--main.js
import topkeeLangPickerVue from 'topkee-lang-picker-vue';
import 'topkee-lang-picker-vue/dist/index.css'
const app = createApp(App);
app.use(topkeeLangPickerVue);// 安装
在vue文件里使用
-- 例如 test.vue文件
<topkee-lang-picker />
yarn add vue-i18n@next
问题 Uncaught SyntaxError: Not available in legacy mode
const i18n = createI18n(
{
legacy: false,
locale: 'en',
messages: {
en,
ar
}
}
)