国际化

This commit is contained in:
2025-09-12 13:13:29 +08:00
parent caef2ecc53
commit 2ebaeac1e9
18 changed files with 533 additions and 331 deletions

92
locale/en.json Normal file
View File

@@ -0,0 +1,92 @@
{
"login": {
"enterusername": "Please enter the username",
"enterpassword": "Please enter the password",
"remember": "Remember username",
"settings": "Settings",
"upgrade": "Upgrade version",
"login": "Log in",
"text1": "Welcome to",
"text2": "Ningbo Fujia Handheld System!"
},
"setting": {
"language": "Language",
"server": "Server address",
"refresh": "Refresh time",
"language-change-confirm": "Applying this setting will restart the App."
},
"upgrade": {
"new-version": "New version found",
"text1": "There is a new version of Ningbo Fujia again. Upgrade to the latest version and enjoy more abundant, stable and fast functions and experiences!",
"text2": "The installation package is downloading. Please wait.",
"upgrade-now": "Upgrade immediately"
},
"home": {
"title": "Home page",
"message": "Welcome to the Ningbo Fujia Handheld System!",
"exit": "Exit",
"MaterialPalletizing": "Material Palletizing",
"FixedpointOperation": "Fixed - point Operation",
"PalletizingWarehousing": "Palletizing and Warehousing",
"ManualMaterialRequest": "Manual Material Request",
"ManualWarehouseTransfer": "Manual Warehouse Transfer",
"OperationManagement": "Operation Management",
"PointUpdate": "Point Update",
"QueryMaterials": "Query Materials"
},
"utils": {
"loading": "Loading...",
"read-more": "Read more",
"no-more": "No more",
"selectPlaceholder": "Please select",
"selectEmptyTips": "No options available"
},
"button": {
"clear": "Clear",
"search": "Query",
"cancel": "Cancel",
"confirm": "Confirm",
"Operation": "Operation",
"Delete": "Delete",
"AddMaterialBox": "Add Material Box",
"Reissue": "Re - issue",
"Forcecompletion": "Force completion",
"Bind": "Bind",
"Clearcarrier": "Clear carrier"
},
"label": {
"CarrierCode": "Carrier Code",
"Material": "Material",
"MaterialCode": "Material Code",
"MaterialName": "Material Name",
"MaterialSpecification": "Material Specification",
"MaterialQuantity": "Material Quantity",
"StartPosition": "Starting Point Position",
"EndPosition": "Ending Point Position",
"WarehouseArea": "Warehousing Area",
"OutWarehouseArea": "Outbound Warehouse Area",
"MaterialInquiry": "Material Inquiry",
"DestinationFloor": "Destination Floor",
"RemoveLocation": "Remove from Storage Location",
"RemoveCarrier": "Remove from Carrier",
"MoveLocation": "Move into Storage Location",
"Keyword": "Keyword",
"Pointlocation": "Point location",
"Pointlocationcarrier": "Point - location carrier"
},
"th": {
"MaterialBoxNumber": "Material Box Number",
"Quantity": "Quantity",
"WarehouseLocation": "Warehouse Location",
"Unit": "Unit",
"Serialnumber": "No.",
"Startpoint": "Starting point",
"Endpoint": "End point",
"Status": "Status",
"Jobnumber": "Job number"
},
"toast": {
"boxnotduplicated": "The material box number cannot be repeated.",
"quantitynonnegative": "The quantity must be a non - negative number"
}
}

22
locale/index.js Normal file
View File

@@ -0,0 +1,22 @@
import en from './en.json'
import zhHans from './zh-Hans.json'
const messages = {
'en': en,
'zh-Hans': zhHans
}
let i18nConfig = {
silentTranslationWarn: true,
locale: uni.getLocale(),
messages
}
import Vue from 'vue'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
const i18n = new VueI18n(i18nConfig)
export default i18n

36
locale/uni-app.en.json Normal file
View File

@@ -0,0 +1,36 @@
{
"common": {
"uni.app.quit": "Press again to exit the application",
"uni.async.error": "Connection to server timeout, click on screen to retry",
"uni.showActionSheet.cancel": "Cancel",
"uni.showToast.unpaired": "Please note that showToast and hideToast must be paired for use",
"uni.showLoading.unpaired": "Please note that showLoading and hideLoading must be paired for use",
"uni.showModal.cancel": "Cancel",
"uni.showModal.confirm": "Ok",
"uni.chooseImage.cancel": "Cancel",
"uni.chooseImage.sourceType.album": "Select from album",
"uni.chooseImage.sourceType.camera": "Capture",
"uni.chooseVideo.cancel": "Cancel",
"uni.chooseVideo.sourceType.album": "Select from album",
"uni.chooseVideo.sourceType.camera": "Capture",
"uni.previewImage.cancel": "Cancel",
"uni.previewImage.button.save": "Save image",
"uni.previewImage.save.success": "Successfully saved image to album",
"uni.previewImage.save.fail": "Saving image to album failed",
"uni.setClipboardData.success": "Content copied",
"uni.scanCode.title": "Scan Code",
"uni.scanCode.album": "Album",
"uni.scanCode.fail": "Recognition failed",
"uni.scanCode.flash.on": "Tap to illuminate",
"uni.scanCode.flash.off": "Tap to close",
"uni.startSoterAuthentication.authContent": "Fingerprint recognition in progress...",
"uni.picker.done": "Complete",
"uni.picker.cancel": "Cancel",
"uni.video.danmu": "Barrage",
"uni.video.volume": "Volume",
"uni.button.feedback.title": "Problem feedback",
"uni.button.feedback.send": "Send"
},
"ios": {},
"android": {}
}

View File

@@ -0,0 +1,36 @@
{
"common": {
"uni.app.quit": "再按一次退出应用",
"uni.async.error": "连接服务器超时,点击屏幕重试",
"uni.showActionSheet.cancel": "取消",
"uni.showToast.unpaired": "请注意 showToast 与 hideToast 必须配对使用",
"uni.showLoading.unpaired": "请注意 showLoading 与 hideLoading 必须配对使用",
"uni.showModal.cancel": "取消",
"uni.showModal.confirm": "确定",
"uni.chooseImage.cancel": "取消",
"uni.chooseImage.sourceType.album": "从相册选择",
"uni.chooseImage.sourceType.camera": "拍摄",
"uni.chooseVideo.cancel": "取消",
"uni.chooseVideo.sourceType.album": "从相册选择",
"uni.chooseVideo.sourceType.camera": "拍摄",
"uni.previewImage.cancel": "取消",
"uni.previewImage.button.save": "保存图像",
"uni.previewImage.save.success": "保存图像到相册成功",
"uni.previewImage.save.fail": "保存图像到相册失败",
"uni.setClipboardData.success": "内容已复制",
"uni.scanCode.title": "扫码",
"uni.scanCode.album": "相册",
"uni.scanCode.fail": "识别失败",
"uni.scanCode.flash.on": "轻触照亮",
"uni.scanCode.flash.off": "轻触关闭",
"uni.startSoterAuthentication.authContent": "指纹识别中...",
"uni.picker.done": "完成",
"uni.picker.cancel": "取消",
"uni.video.danmu": "弹幕",
"uni.video.volume": "音量",
"uni.button.feedback.title": "问题反馈",
"uni.button.feedback.send": "发送"
},
"ios": {},
"android": {}
}

92
locale/zh-Hans.json Normal file
View File

@@ -0,0 +1,92 @@
{
"login": {
"enterusername": "请输入用户名",
"enterpassword": "请输入密码",
"remember": "记住用户名",
"settings": "设置",
"upgrade": "升级版本",
"login": "登录",
"text1": "欢迎来到",
"text2": "宁波富佳手持系统!"
},
"setting": {
"language": "语言",
"server": "服务器地址",
"refresh": "刷新时间",
"language-change-confirm": "应用此设置将重启App"
},
"upgrade": {
"new-version": "发现新版本",
"text1": "宁波富佳又有新版本了,升级到最新版本,享受更丰富、稳定、快速的功能和体验!",
"text2": "安装包下载中,请稍后",
"upgrade-now": "立即升级"
},
"home": {
"title": "首页",
"message": "欢迎进入宁波富佳手持系统!",
"exit": "退出",
"MaterialPalletizing": "物料组盘",
"FixedpointOperation": "定点作业",
"PalletizingWarehousing": "组盘入库",
"ManualMaterialRequest": "人工叫料",
"ManualWarehouseTransfer": "手工移库",
"OperationManagement": "作业管理",
"PointUpdate": "点位更新",
"QueryMaterials": "查询物料"
},
"utils": {
"loading": "加载中...",
"read-more": "查看更多",
"no-more": "没有更多",
"selectPlaceholder": "请选择",
"selectEmptyTips": "无选项"
},
"button": {
"clear": "清空",
"search": "查询",
"cancel": "取消",
"confirm": "确定",
"Operation": "操作",
"Delete": "删除",
"AddMaterialBox": "添加料框",
"Reissue": "重新下发",
"Forcecompletion": "强制完成",
"Bind": "绑定",
"Clearcarrier": "清载具"
},
"label": {
"CarrierCode": "载具编码",
"Material": "物料",
"MaterialCode": "物料编码",
"MaterialName": "物料名称",
"MaterialSpecification": "物料规格",
"MaterialQuantity": "物料数量",
"StartPosition": "起点点位",
"EndPosition": "终点点位",
"WarehouseArea": "入库库区",
"OutWarehouseArea": "出库库区",
"MaterialInquiry": "物料查询",
"DestinationFloor": "目的楼层",
"RemoveLocation": "移出货位",
"RemoveCarrier": "移出载具",
"MoveLocation": "移入货位",
"Keyword": "关键字",
"Pointlocation": "点位",
"Pointlocationcarrier": "点位载具"
},
"th": {
"MaterialBoxNumber": "料框号",
"Quantity": "数量",
"WarehouseLocation": "库位",
"Unit": "单位",
"Serialnumber": "序号",
"Startpoint": "起点",
"Endpoint": "终点",
"Status": "状态",
"Jobnumber": "作业号"
},
"toast": {
"boxnotduplicated": "料框号不能重复",
"quantitynonnegative": "数量必须为非负数"
}
}