|
@@ -16,6 +16,9 @@ const i18n = new VueI18n({
|
|
// locale: "en-US",
|
|
// locale: "en-US",
|
|
messages,
|
|
messages,
|
|
});
|
|
});
|
|
|
|
+if (!uni.getStorageSync("language")) {
|
|
|
|
+ uni.setStorageSync("language", "zh-CN");
|
|
|
|
+}
|
|
Vue.prototype._language = uni.getStorageSync("language");
|
|
Vue.prototype._language = uni.getStorageSync("language");
|
|
Vue.prototype._i18n = i18n;
|
|
Vue.prototype._i18n = i18n;
|
|
Vue.use(uView);
|
|
Vue.use(uView);
|