|
@@ -10,32 +10,6 @@ import messages from "./commont/messages.js";
|
|
|
Vue.use(VueI18n);
|
|
|
Vue.config.productionTip = false;
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
-//获取当前选择语言
|
|
|
-let language = "";
|
|
|
-let i18n;
|
|
|
-uni.getStorage({
|
|
|
- key: "language", // 这里替换成你要获取的数据的key
|
|
|
- success: function (res) {
|
|
|
- language = res.data; // 输出获取到的数据
|
|
|
- console.log('Vue.prototype',Vue.prototype);
|
|
|
- Vue.prototype._language = language;
|
|
|
- // 多国语言包配置
|
|
|
- i18n = new VueI18n({
|
|
|
- // locale: language,
|
|
|
- locale: language,
|
|
|
- // locale: "en-US",
|
|
|
- messages,
|
|
|
- });
|
|
|
-
|
|
|
- Vue.prototype._i18n = i18n;
|
|
|
- },
|
|
|
- fail: function () {
|
|
|
- // 获取失败的处理逻辑
|
|
|
- },
|
|
|
-});
|
|
|
-Vue.use(uView);
|
|
|
-=======
|
|
|
// 多国语言包配置
|
|
|
const i18n = new VueI18n({
|
|
|
locale: uni.getStorageSync("language"),
|
|
@@ -46,7 +20,6 @@ Vue.prototype._language = uni.getStorageSync("language");
|
|
|
Vue.prototype._i18n = i18n;
|
|
|
|
|
|
Vue.use(uView);
|
|
|
->>>>>>> f6a257059fab99246d760d039a6abc0f9eadff27
|
|
|
App.mpType = "app";
|
|
|
const app = new Vue({
|
|
|
i18n,
|