配置页翻译
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
"index.language-change-confirm": "Applying this setting will restart the app",
|
"utils.loading": "Loading...",
|
||||||
|
"uni.dataSelect.placeholder": "Please select",
|
||||||
|
"uni.dataSelect.emptyTips": "No options available",
|
||||||
|
"button.confirm": "OK",
|
||||||
|
"button.search": "Query",
|
||||||
"login.username": "User name",
|
"login.username": "User name",
|
||||||
"login.password": "Password",
|
"login.password": "Password",
|
||||||
"login.remember": "Remember username",
|
"login.remember": "Remember username",
|
||||||
@@ -11,5 +15,6 @@
|
|||||||
"setting.language": "language",
|
"setting.language": "language",
|
||||||
"setting.server": "server address",
|
"setting.server": "server address",
|
||||||
"setting.refresh": "Refresh time",
|
"setting.refresh": "Refresh time",
|
||||||
"setting.customer-label-printing": "Label printing"
|
"setting.customer-label-printing": "Label printing",
|
||||||
|
"setting.language-change-confirm": "Applying this setting will restart the app"
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
"index.language-change-confirm": "Menggunakan pengaturan ini akan memulai ulang aplikasi",
|
"utils.loading": "Memuatkan...",
|
||||||
|
"uni.dataSelect.placeholder": "Silakan pilih",
|
||||||
|
"uni.dataSelect.emptyTips": "Tidak ada pilihan tersedia",
|
||||||
|
"button.confirm": "OK",
|
||||||
|
"button.search": "pertanyaan",
|
||||||
"login.username": "Nama pengguna",
|
"login.username": "Nama pengguna",
|
||||||
"login.password": "Sandi",
|
"login.password": "Sandi",
|
||||||
"login.remember": "Ingat nama pengguna",
|
"login.remember": "Ingat nama pengguna",
|
||||||
@@ -11,5 +15,6 @@
|
|||||||
"setting.language": "Bahasa",
|
"setting.language": "Bahasa",
|
||||||
"setting.server": "Alamat server",
|
"setting.server": "Alamat server",
|
||||||
"setting.refresh": "Waktu segar",
|
"setting.refresh": "Waktu segar",
|
||||||
"setting.customer-label-printing": "Label pelanggan"
|
"setting.customer-label-printing": "Label pelanggan",
|
||||||
|
"setting.language-change-confirm": "Menggunakan pengaturan ini akan memulai ulang aplikasi"
|
||||||
}
|
}
|
||||||
@@ -2,34 +2,34 @@
|
|||||||
"common": {
|
"common": {
|
||||||
"uni.app.quit": "Press again to exit the application",
|
"uni.app.quit": "Press again to exit the application",
|
||||||
"uni.async.error": "Connection to server timeout, click on screen to retry",
|
"uni.async.error": "Connection to server timeout, click on screen to retry",
|
||||||
"uni.showActionSheet.cancel": "取消",
|
"uni.showActionSheet.cancel": "Cancel",
|
||||||
"uni.showToast.unpaired": "请注意 showToast 与 hideToast 必须配对使用",
|
"uni.showToast.unpaired": "Please note that showToast and hideToast must be paired for use",
|
||||||
"uni.showLoading.unpaired": "请注意 showLoading 与 hideLoading 必须配对使用",
|
"uni.showLoading.unpaired": "Please note that showLoading and hideLoading must be paired for use",
|
||||||
"uni.showModal.cancel": "取消",
|
"uni.showModal.cancel": "Cancel",
|
||||||
"uni.showModal.confirm": "确定",
|
"uni.showModal.confirm": "Ok",
|
||||||
"uni.chooseImage.cancel": "取消",
|
"uni.chooseImage.cancel": "Cancel",
|
||||||
"uni.chooseImage.sourceType.album": "从相册选择",
|
"uni.chooseImage.sourceType.album": "Select from album",
|
||||||
"uni.chooseImage.sourceType.camera": "拍摄",
|
"uni.chooseImage.sourceType.camera": "Capture",
|
||||||
"uni.chooseVideo.cancel": "取消",
|
"uni.chooseVideo.cancel": "Cancel",
|
||||||
"uni.chooseVideo.sourceType.album": "从相册选择",
|
"uni.chooseVideo.sourceType.album": "Select from album",
|
||||||
"uni.chooseVideo.sourceType.camera": "拍摄",
|
"uni.chooseVideo.sourceType.camera": "Capture",
|
||||||
"uni.previewImage.cancel": "取消",
|
"uni.previewImage.cancel": "Cancel",
|
||||||
"uni.previewImage.button.save": "保存图像",
|
"uni.previewImage.button.save": "Save image",
|
||||||
"uni.previewImage.save.success": "保存图像到相册成功",
|
"uni.previewImage.save.success": "Successfully saved image to album",
|
||||||
"uni.previewImage.save.fail": "保存图像到相册失败",
|
"uni.previewImage.save.fail": "Saving image to album failed",
|
||||||
"uni.setClipboardData.success": "内容已复制",
|
"uni.setClipboardData.success": "Content copied",
|
||||||
"uni.scanCode.title": "扫码",
|
"uni.scanCode.title": "Scan Code",
|
||||||
"uni.scanCode.album": "相册",
|
"uni.scanCode.album": "Album",
|
||||||
"uni.scanCode.fail": "识别失败",
|
"uni.scanCode.fail": "Recognition failed",
|
||||||
"uni.scanCode.flash.on": "轻触照亮",
|
"uni.scanCode.flash.on": "Tap to illuminate",
|
||||||
"uni.scanCode.flash.off": "轻触关闭",
|
"uni.scanCode.flash.off": "Tap to close",
|
||||||
"uni.startSoterAuthentication.authContent": "指纹识别中...",
|
"uni.startSoterAuthentication.authContent": "Fingerprint recognition in progress...",
|
||||||
"uni.picker.done": "完成",
|
"uni.picker.done": "Complete",
|
||||||
"uni.picker.cancel": "取消",
|
"uni.picker.cancel": "Cancel",
|
||||||
"uni.video.danmu": "弹幕",
|
"uni.video.danmu": "Barrage",
|
||||||
"uni.video.volume": "音量",
|
"uni.video.volume": "Volume",
|
||||||
"uni.button.feedback.title": "问题反馈",
|
"uni.button.feedback.title": "Problem feedback",
|
||||||
"uni.button.feedback.send": "发送"
|
"uni.button.feedback.send": "Send"
|
||||||
},
|
},
|
||||||
"ios": {},
|
"ios": {},
|
||||||
"android": {}
|
"android": {}
|
||||||
|
|||||||
@@ -26,8 +26,8 @@
|
|||||||
"uni.startSoterAuthentication.authContent": "Pengenalan sidik jari...",
|
"uni.startSoterAuthentication.authContent": "Pengenalan sidik jari...",
|
||||||
"uni.picker.done": "Selesai",
|
"uni.picker.done": "Selesai",
|
||||||
"uni.picker.cancel": "Batalkan",
|
"uni.picker.cancel": "Batalkan",
|
||||||
"uni.video.danmu": "Layar peluru",
|
"uni.video.danmu": "Percakapan peluru",
|
||||||
"uni.video.volume": "Roll",
|
"uni.video.volume": "Volume",
|
||||||
"uni.button.feedback.title": "Balasan masalah",
|
"uni.button.feedback.title": "Balasan masalah",
|
||||||
"uni.button.feedback.send": "kirim"
|
"uni.button.feedback.send": "kirim"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
"index.language-change-confirm": "应用此设置将重启App",
|
"utils.loading": "加载中...",
|
||||||
|
"uni.dataSelect.placeholder": "请选择",
|
||||||
|
"uni.dataSelect.emptyTips": "无选项",
|
||||||
|
"button.confirm": "确定",
|
||||||
|
"button.search": "查询",
|
||||||
"login.username": "用户名",
|
"login.username": "用户名",
|
||||||
"login.password": "密码",
|
"login.password": "密码",
|
||||||
"login.remember": "记住用户名",
|
"login.remember": "记住用户名",
|
||||||
@@ -11,6 +15,6 @@
|
|||||||
"setting.language": "语言",
|
"setting.language": "语言",
|
||||||
"setting.server": "服务器地址",
|
"setting.server": "服务器地址",
|
||||||
"setting.refresh": "刷新时间",
|
"setting.refresh": "刷新时间",
|
||||||
"setting.customer-label-printing": "客户标签打印"
|
"setting.customer-label-printing": "客户标签打印",
|
||||||
|
"setting.language-change-confirm": "应用此设置将重启App"
|
||||||
}
|
}
|
||||||
@@ -20,14 +20,14 @@
|
|||||||
<view class="input-wrap">
|
<view class="input-wrap">
|
||||||
<view class="input-label">{{$t('setting.customer-label-printing')}}</view>
|
<view class="input-label">{{$t('setting.customer-label-printing')}}</view>
|
||||||
<div class="select_wrap">
|
<div class="select_wrap">
|
||||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
<uni-data-select v-model="index" :placeholder="$t('uni.dataSelect.placeholder')" :emptyTips="$t('uni.dataSelect.emptyTips')" :localdata="options" @change="selectChange"></uni-data-select>
|
||||||
</div>
|
</div>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="submit-bar">
|
<view class="submit-bar">
|
||||||
<button class="submit-button" @click="_submit">确认</button>
|
<button class="submit-button" @click="_submit">{{$t('button.confirm')}}</button>
|
||||||
<button class="submit-button" @click="_virtualprintType">查询</button>
|
<button class="submit-button" @click="_virtualprintType">{{$t('button.search')}}</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
onLocaleChange(e) {
|
onLocaleChange(e) {
|
||||||
if (this.isAndroid) {
|
if (this.isAndroid) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
content: this.$t('index.language-change-confirm'),
|
content: this.$t('setting.language-change-confirm'),
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
uni.setLocale(e);
|
uni.setLocale(e);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// import qs from 'qs' // 处理data
|
// import qs from 'qs' // 处理data
|
||||||
import store from '@/vuex/store'
|
import store from '@/vuex/store'
|
||||||
|
import i18n from '../locale/index.js'
|
||||||
const request = (params) => {
|
const request = (params) => {
|
||||||
let _self = this;
|
let _self = this;
|
||||||
let url = params.url;
|
let url = params.url;
|
||||||
@@ -36,7 +37,8 @@ const request = (params) => {
|
|||||||
}
|
}
|
||||||
const requestUrl = `${store.getters.baseUrl}/` + url;
|
const requestUrl = `${store.getters.baseUrl}/` + url;
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中...'
|
// title: '加载中...'
|
||||||
|
title: i18n.tc('utils.loading')
|
||||||
});
|
});
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
uni.request({
|
uni.request({
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import store from '@/vuex/store'
|
import store from '@/vuex/store'
|
||||||
|
import i18n from '../locale/index.js'
|
||||||
const request1 = (params) => {
|
const request1 = (params) => {
|
||||||
let _self = this;
|
let _self = this;
|
||||||
let url = params.url;
|
let url = params.url;
|
||||||
@@ -35,7 +36,8 @@ const request1 = (params) => {
|
|||||||
}
|
}
|
||||||
const requestUrl = url;
|
const requestUrl = url;
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中...'
|
// title: '加载中...'
|
||||||
|
title: i18n.tc('utils.loading')
|
||||||
});
|
});
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
uni.request({
|
uni.request({
|
||||||
|
|||||||
Reference in New Issue
Block a user