Add files via upload
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
const en = {
|
||||
message: {
|
||||
askTodelete: "Are you sure to delete?",
|
||||
},
|
||||
content: {
|
||||
blankTip: "I am Blank.",
|
||||
},
|
||||
button: {
|
||||
ok: "OK",
|
||||
yes: "Yes",
|
||||
no: "No",
|
||||
selectAll: "Select All",
|
||||
copy: "Copy",
|
||||
copyAll: "Copy All",
|
||||
},
|
||||
};
|
||||
export default en;
|
||||
const en = {
|
||||
message: {
|
||||
askTodelete: "Are you sure to delete?",
|
||||
},
|
||||
content: {
|
||||
blankTip: "I am Blank.",
|
||||
},
|
||||
button: {
|
||||
ok: "OK",
|
||||
yes: "Yes",
|
||||
no: "No",
|
||||
selectAll: "Select All",
|
||||
copy: "Copy",
|
||||
copyAll: "Copy All",
|
||||
},
|
||||
};
|
||||
export default en;
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
const zh = {
|
||||
message: {
|
||||
askTodelete: "是否确定要删除?",
|
||||
},
|
||||
content: {
|
||||
blankTip: "我是布兰克。",
|
||||
},
|
||||
button: {
|
||||
ok: "好的",
|
||||
yes: "是的",
|
||||
no: "不",
|
||||
selectAll: "全选",
|
||||
copy: "复制",
|
||||
copyAll: "复制全部",
|
||||
},
|
||||
};
|
||||
export default zh;
|
||||
const zh = {
|
||||
message: {
|
||||
askTodelete: "是否确定要删除?",
|
||||
},
|
||||
content: {
|
||||
blankTip: "I am Blank.",
|
||||
},
|
||||
button: {
|
||||
ok: "好的",
|
||||
yes: "是的",
|
||||
no: "不",
|
||||
selectAll: "全选",
|
||||
copy: "复制",
|
||||
copyAll: "复制全部",
|
||||
},
|
||||
};
|
||||
export default zh;
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
import Vue from "vue";
|
||||
import VueI18n from "vue-i18n";
|
||||
Vue.use(VueI18n);
|
||||
|
||||
import zh from "./config/zh";
|
||||
import en from "./config/en";
|
||||
|
||||
const i18n = new VueI18n({
|
||||
locale: getLocale(),
|
||||
messages: {
|
||||
zh,
|
||||
en,
|
||||
},
|
||||
});
|
||||
|
||||
function getLocale(){
|
||||
if(localStorage.getItem("locale")){
|
||||
return localStorage.getItem("locale").substring(0,2);
|
||||
}
|
||||
|
||||
return "en";
|
||||
}
|
||||
|
||||
export default i18n;
|
||||
import Vue from "vue";
|
||||
import VueI18n from "vue-i18n";
|
||||
Vue.use(VueI18n);
|
||||
|
||||
import zh from "./config/zh";
|
||||
import en from "./config/en";
|
||||
|
||||
const i18n = new VueI18n({
|
||||
locale: getLocale(),
|
||||
messages: {
|
||||
zh,
|
||||
en,
|
||||
},
|
||||
});
|
||||
|
||||
function getLocale(){
|
||||
if(localStorage.getItem("locale")){
|
||||
return localStorage.getItem("locale").substring(0,2);
|
||||
}
|
||||
|
||||
return "en";
|
||||
}
|
||||
|
||||
export default i18n;
|
||||
|
||||
Reference in New Issue
Block a user