feat: 初始化
This commit is contained in:
1161
locale/ar-SA.json
Normal file
1161
locale/ar-SA.json
Normal file
File diff suppressed because it is too large
Load Diff
1160
locale/en-US.json
Normal file
1160
locale/en-US.json
Normal file
File diff suppressed because it is too large
Load Diff
1159
locale/es-ES.json
Normal file
1159
locale/es-ES.json
Normal file
File diff suppressed because it is too large
Load Diff
1159
locale/hi-IN.json
Normal file
1159
locale/hi-IN.json
Normal file
File diff suppressed because it is too large
Load Diff
1159
locale/in-ID.json
Normal file
1159
locale/in-ID.json
Normal file
File diff suppressed because it is too large
Load Diff
32
locale/index.ts
Normal file
32
locale/index.ts
Normal file
@ -0,0 +1,32 @@
|
||||
import arSA from './ar-SA.json';
|
||||
import enUS from './en-US.json';
|
||||
import esES from './es-ES.json';
|
||||
import hiIN from './hi-IN.json';
|
||||
import inID from './in-ID.json';
|
||||
import koKR from './ko-KR.json';
|
||||
import thTH from './th-TH.json';
|
||||
import viVN from './vi-VN.json';
|
||||
import zhCN from './zh-CN.json';
|
||||
import zhTW from './zh-TW.json';
|
||||
import { locales, defaultLocale } from '@/utils/const';
|
||||
import { createI18n } from 'vue-i18n';
|
||||
const messages = {
|
||||
'ar-SA': arSA,
|
||||
'en-US': enUS,
|
||||
en: enUS,
|
||||
'es-ES': esES,
|
||||
'hi-IN': hiIN,
|
||||
'in-ID': inID,
|
||||
'ko-KR': koKR,
|
||||
'th-TH': thTH,
|
||||
'vi-VN': viVN,
|
||||
'zh-CN': zhCN,
|
||||
'zh-TW': zhTW
|
||||
};
|
||||
const locale = uni.getLocale();
|
||||
let i18nConfig = {
|
||||
locale: locales.includes(locale) ? locale : defaultLocale,
|
||||
messages
|
||||
};
|
||||
const i18n = createI18n(i18nConfig);
|
||||
export { messages, i18n };
|
1153
locale/ko-KR.json
Normal file
1153
locale/ko-KR.json
Normal file
File diff suppressed because it is too large
Load Diff
1153
locale/th-TH.json
Normal file
1153
locale/th-TH.json
Normal file
File diff suppressed because it is too large
Load Diff
16
locale/uni-app.ar-SA.json
Normal file
16
locale/uni-app.ar-SA.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"common": {
|
||||
"uni.app.quit": "Exit application",
|
||||
"uni.showModal.confirm": "Confirm",
|
||||
"uni.showModal.cancel": "Cancel",
|
||||
"uni.picker.done": "Confirm",
|
||||
"uni.picker.cancel": "Cancel",
|
||||
"uni.chooseImage.sourceType.camera": "Take a picture",
|
||||
"uni.chooseImage.sourceType.album": "Select from album",
|
||||
"uni.chooseImage.cancel": "Cancel",
|
||||
"uni.previewImage.button.save": "Save picture",
|
||||
"uni.previewImage.cancel": "Cancel"
|
||||
},
|
||||
"ios": {},
|
||||
"android": {}
|
||||
}
|
16
locale/uni-app.en-US.json
Normal file
16
locale/uni-app.en-US.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"common": {
|
||||
"uni.app.quit": "Exit application",
|
||||
"uni.showModal.confirm": "Confirm",
|
||||
"uni.showModal.cancel": "Cancel",
|
||||
"uni.picker.done": "Confirm",
|
||||
"uni.picker.cancel": "Cancel",
|
||||
"uni.chooseImage.sourceType.camera": "Take a picture",
|
||||
"uni.chooseImage.sourceType.album": "Select from album",
|
||||
"uni.chooseImage.cancel": "Cancel",
|
||||
"uni.previewImage.button.save": "Save picture",
|
||||
"uni.previewImage.cancel": "Cancel"
|
||||
},
|
||||
"ios": {},
|
||||
"android": {}
|
||||
}
|
16
locale/uni-app.es-ES.json
Normal file
16
locale/uni-app.es-ES.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"common": {
|
||||
"uni.app.quit": "Exit application",
|
||||
"uni.showModal.confirm": "Confirm",
|
||||
"uni.showModal.cancel": "Cancel",
|
||||
"uni.picker.done": "Confirm",
|
||||
"uni.picker.cancel": "Cancel",
|
||||
"uni.chooseImage.sourceType.camera": "Take a picture",
|
||||
"uni.chooseImage.sourceType.album": "Select from album",
|
||||
"uni.chooseImage.cancel": "Cancel",
|
||||
"uni.previewImage.button.save": "Save picture",
|
||||
"uni.previewImage.cancel": "Cancel"
|
||||
},
|
||||
"ios": {},
|
||||
"android": {}
|
||||
}
|
16
locale/uni-app.hi-IN.json
Normal file
16
locale/uni-app.hi-IN.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"common": {
|
||||
"uni.app.quit": "Exit application",
|
||||
"uni.showModal.confirm": "Confirm",
|
||||
"uni.showModal.cancel": "Cancel",
|
||||
"uni.picker.done": "Confirm",
|
||||
"uni.picker.cancel": "Cancel",
|
||||
"uni.chooseImage.sourceType.camera": "Take a picture",
|
||||
"uni.chooseImage.sourceType.album": "Select from album",
|
||||
"uni.chooseImage.cancel": "Cancel",
|
||||
"uni.previewImage.button.save": "Save picture",
|
||||
"uni.previewImage.cancel": "Cancel"
|
||||
},
|
||||
"ios": {},
|
||||
"android": {}
|
||||
}
|
16
locale/uni-app.in-ID.json
Normal file
16
locale/uni-app.in-ID.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"common": {
|
||||
"uni.app.quit": "Exit application",
|
||||
"uni.showModal.confirm": "Confirm",
|
||||
"uni.showModal.cancel": "Cancel",
|
||||
"uni.picker.done": "Confirm",
|
||||
"uni.picker.cancel": "Cancel",
|
||||
"uni.chooseImage.sourceType.camera": "Take a picture",
|
||||
"uni.chooseImage.sourceType.album": "Select from album",
|
||||
"uni.chooseImage.cancel": "Cancel",
|
||||
"uni.previewImage.button.save": "Save picture",
|
||||
"uni.previewImage.cancel": "Cancel"
|
||||
},
|
||||
"ios": {},
|
||||
"android": {}
|
||||
}
|
16
locale/uni-app.ko-KR.json
Normal file
16
locale/uni-app.ko-KR.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"common": {
|
||||
"uni.app.quit": "Exit application",
|
||||
"uni.showModal.confirm": "Confirm",
|
||||
"uni.showModal.cancel": "Cancel",
|
||||
"uni.picker.done": "Confirm",
|
||||
"uni.picker.cancel": "Cancel",
|
||||
"uni.chooseImage.sourceType.camera": "Take a picture",
|
||||
"uni.chooseImage.sourceType.album": "Select from album",
|
||||
"uni.chooseImage.cancel": "Cancel",
|
||||
"uni.previewImage.button.save": "Save picture",
|
||||
"uni.previewImage.cancel": "Cancel"
|
||||
},
|
||||
"ios": {},
|
||||
"android": {}
|
||||
}
|
16
locale/uni-app.th-TH.json
Normal file
16
locale/uni-app.th-TH.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"common": {
|
||||
"uni.app.quit": "Exit application",
|
||||
"uni.showModal.confirm": "Confirm",
|
||||
"uni.showModal.cancel": "Cancel",
|
||||
"uni.picker.done": "Confirm",
|
||||
"uni.picker.cancel": "Cancel",
|
||||
"uni.chooseImage.sourceType.camera": "Take a picture",
|
||||
"uni.chooseImage.sourceType.album": "Select from album",
|
||||
"uni.chooseImage.cancel": "Cancel",
|
||||
"uni.previewImage.button.save": "Save picture",
|
||||
"uni.previewImage.cancel": "Cancel"
|
||||
},
|
||||
"ios": {},
|
||||
"android": {}
|
||||
}
|
16
locale/uni-app.vi-VN.json
Normal file
16
locale/uni-app.vi-VN.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"common": {
|
||||
"uni.app.quit": "Exit application",
|
||||
"uni.showModal.confirm": "Confirm",
|
||||
"uni.showModal.cancel": "Cancel",
|
||||
"uni.picker.done": "Confirm",
|
||||
"uni.picker.cancel": "Cancel",
|
||||
"uni.chooseImage.sourceType.camera": "Take a picture",
|
||||
"uni.chooseImage.sourceType.album": "Select from album",
|
||||
"uni.chooseImage.cancel": "Cancel",
|
||||
"uni.previewImage.button.save": "Save picture",
|
||||
"uni.previewImage.cancel": "Cancel"
|
||||
},
|
||||
"ios": {},
|
||||
"android": {}
|
||||
}
|
16
locale/uni-app.zh-CN.json
Normal file
16
locale/uni-app.zh-CN.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"common": {
|
||||
"uni.app.quit": "退出应用",
|
||||
"uni.showModal.confirm": "确定",
|
||||
"uni.showModal.cancel": "取消",
|
||||
"uni.picker.done": "确定",
|
||||
"uni.picker.cancel": "取消",
|
||||
"uni.chooseImage.sourceType.camera": "拍照",
|
||||
"uni.chooseImage.sourceType.album": "从相册选择",
|
||||
"uni.chooseImage.cancel": "取消",
|
||||
"uni.previewImage.button.save": "保存图片",
|
||||
"uni.previewImage.cancel": "取消"
|
||||
},
|
||||
"ios": {},
|
||||
"android": {}
|
||||
}
|
16
locale/uni-app.zh-TW.json
Normal file
16
locale/uni-app.zh-TW.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"common": {
|
||||
"uni.app.quit": "退出應用",
|
||||
"uni.showModal.confirm": "確定",
|
||||
"uni.showModal.cancel": "取消",
|
||||
"uni.picker.done": "確定",
|
||||
"uni.picker.cancel": "取消",
|
||||
"uni.chooseImage.sourceType.camera": "拍照",
|
||||
"uni.chooseImage.sourceType.album": "從相册選擇",
|
||||
"uni.chooseImage.cancel": "取消",
|
||||
"uni.previewImage.button.save": "保存圖片",
|
||||
"uni.previewImage.cancel": "取消"
|
||||
},
|
||||
"ios": {},
|
||||
"android": {}
|
||||
}
|
1152
locale/vi-VN.json
Normal file
1152
locale/vi-VN.json
Normal file
File diff suppressed because it is too large
Load Diff
1607
locale/zh-CN.json
Normal file
1607
locale/zh-CN.json
Normal file
File diff suppressed because it is too large
Load Diff
1596
locale/zh-TW.json
Normal file
1596
locale/zh-TW.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user