diff --git a/locale/index.js b/locale/index.js index 304e30c..faa8598 100644 --- a/locale/index.js +++ b/locale/index.js @@ -1,9 +1,11 @@ import en from './en.json' import zhHans from './zh-Hans.json' +import vi from './vi.json' const messages = { 'en': en, - 'zh-Hans': zhHans + 'zh-Hans': zhHans, + 'vi': vi } let i18nConfig = { diff --git a/locale/uni-app.vi.json b/locale/uni-app.vi.json new file mode 100644 index 0000000..5ddde1e --- /dev/null +++ b/locale/uni-app.vi.json @@ -0,0 +1,36 @@ +{ +"common": { +"uni.app.quit": "Nhấn lại một lần để thoát ứng dụng", +"uni.async.error": "Gặp thời gian chờ quá khi kết nối đến máy chủ, hãy nhấp vào màn hình để thử lại", +"uni.showActionSheet.cancel": "Hủy", +"uni.showToast.unpaired": "Vui lòng lưu ý rằng showToast và hideToast phải được sử dụng theo cặp", +"uni.showLoading.unpaired": "Vui lòng lưu ý rằng showLoading và hideLoading phải được sử dụng theo cặp", +"uni.showModal.cancel": "Hủy", +"uni.showModal.confirm": "Đồng ý", +"uni.chooseImage.cancel": "Hủy", +"uni.chooseImage.sourceType.album": "Chọn từ thư viện ảnh", +"uni.chooseImage.sourceType.camera": "Chụp ảnh", +"uni.chooseVideo.cancel": "Hủy", +"uni.chooseVideo.sourceType.album": "Chọn từ thư viện video", +"uni.chooseVideo.sourceType.camera": "Chụp video", +"uni.previewImage.cancel": "Hủy", +"uni.previewImage.button.save": "Lưu hình ảnh", +"uni.previewImage.save.success": "Lưu hình ảnh vào thư viện ảnh thành công", +"uni.previewImage.save.fail": "Lưu hình ảnh vào thư viện ảnh thất bại", +"uni.setClipboardData.success": "Nội dung đã được sao chép", +"uni.scanCode.title": "Quét mã", +"uni.scanCode.album": "Thư viện ảnh", +"uni.scanCode.fail": "Không thể nhận dạng", +"uni.scanCode.flash.on": "Nhấn để bật đèn", +"uni.scanCode.flash.off": "Nhấn để tắt đèn", +"uni.startSoterAuthentication.authContent": "Đang xác thực vân tay...", +"uni.picker.done": "Hoàn thành", +"uni.picker.cancel": "Hủy", +"uni.video.danmu": "Đan mạch", +"uni.video.volume": "Âm lượng", +"uni.button.feedback.title": "Gửi phản hồi", +"uni.button.feedback.send": "Gửi" +}, +"ios": {}, +"android": {} +} \ No newline at end of file diff --git a/locale/vi.json b/locale/vi.json new file mode 100644 index 0000000..052e3f2 --- /dev/null +++ b/locale/vi.json @@ -0,0 +1,92 @@ +{ + "login": { + "enterusername": "Vui lòng nhập tên người dùng", + "enterpassword": "Vui lòng nhập mật khẩu", + "remember": "Ghi nhớ tên người dùng", + "settings": "Cài đặt", + "upgrade": "Cập nhật phiên bản", + "login": "Đăng nhập", + "text1": "Chào mừng đến với", + "text2": "Hệ thống cầm tay Ningbo Fujia!" + }, + "setting": { + "language": "Ngôn ngữ", + "server": "Địa chỉ máy chủ", + "refresh": "Thời gian làm mới", + "language-change-confirm": "Áp dụng cài đặt này sẽ khởi động lại ứng dụng" + }, + "upgrade": { + "new-version": "Phát hiện phiên bản mới", + "text1": "Có phiên bản mới của Ningbo Fujia. Cập nhật lên phiên bản mới nhất để trải nghiệm các chức năng phong phú, ổn định và nhanh hơn!", + "text2": "Đang tải gói cài đặt, vui lòng đợi", + "upgrade-now": "Cập nhật ngay" + }, + "home": { + "title": "Trang chủ", + "message": "Chào mừng đến với Hệ thống cầm tay Ningbo Fujia!", + "exit": "Thoát", + "MaterialPalletizing": "Gom vật liệu", + "FixedpointOperation": "Hoạt động điểm cố định", + "PalletizingWarehousing": "Gom và nhập kho", + "ManualMaterialRequest": "Yêu cầu vật liệu thủ công", + "ManualWarehouseTransfer": "Chuyển kho thủ công", + "OperationManagement": "Quản lý hoạt động", + "PointUpdate": "Cập nhật điểm", + "QueryMaterials": "Tra cứu vật liệu" + }, + "utils": { + "loading": "Đang tải...", + "read-more": "Xem thêm", + "no-more": "Không có thêm", + "selectPlaceholder": "Vui lòng chọn", + "selectEmptyTips": "Không có lựa chọn" + }, + "button": { + "clear": "Xóa trắng", + "search": "Tìm kiếm", + "cancel": "Hủy", + "confirm": "Xác nhận", + "Operation": "Thao tác", + "Delete": "Xóa", + "AddMaterialBox": "Thêm hộp vật liệu", + "Reissue": "Gửi lại", + "Forcecompletion": "Hoàn thành buộc", + "Bind": "Liên kết", + "Clearcarrier": "Xóa vật chở" + }, + "label": { + "CarrierCode": "Mã vật chở", + "Material": "Vật liệu", + "MaterialCode": "Mã vật liệu", + "MaterialName": "Tên vật liệu", + "MaterialSpecification": "Kỹ thuật vật liệu", + "MaterialQuantity": "Số lượng vật liệu", + "StartPosition": "Điểm bắt đầu", + "EndPosition": "Điểm kết thúc", + "WarehouseArea": "Khu vực nhập kho", + "OutWarehouseArea": "Khu vực xuất kho", + "MaterialInquiry": "Tra cứu vật liệu", + "DestinationFloor": "Tầng đích", + "RemoveLocation": "Chuyển khỏi vị trí kho", + "RemoveCarrier": "Chuyển khỏi vật chở", + "MoveLocation": "Chuyển vào vị trí kho", + "Keyword": "Từ khóa", + "Pointlocation": "Điểm", + "Pointlocationcarrier": "Vật chở tại điểm" + }, + "th": { + "MaterialBoxNumber": "Số hộp vật liệu", + "Quantity": "Số lượng", + "WarehouseLocation": "Vị trí kho", + "Unit": "Đơn vị", + "Serialnumber": "Số thứ tự", + "Startpoint": "Điểm bắt đầu", + "Endpoint": "Điểm kết thúc", + "Status": "Trạng thái", + "Jobnumber": "Số công việc" + }, + "toast": { + "boxnotduplicated": "Số hộp vật liệu không được trùng nhau", + "quantitynonnegative": "Số lượng phải là số không âm" + } +} \ No newline at end of file diff --git a/pages/login/setup.vue b/pages/login/setup.vue index ed27442..e9cb0cb 100644 --- a/pages/login/setup.vue +++ b/pages/login/setup.vue @@ -30,7 +30,7 @@ data() { return { addrip: this.$store.getters.baseUrl, - options1: [{text: '中文',value: 'zh-Hans'}, {text: 'English', value: 'en'}], + options1: [{text: '中文',value: 'zh-Hans'}, {text: 'English', value: 'en'}, {text: 'Tiếng Việt', value: 'vi'}], index1: '', systemLocale: '', applicationLocale: '' @@ -40,7 +40,6 @@ let systemInfo = uni.getSystemInfoSync(); this.systemLocale = systemInfo.language; this.applicationLocale = uni.getLocale(); - console.log(this.applicationLocale) this.index1 = this.applicationLocale.split('-')[0] this.isAndroid = systemInfo.platform.toLowerCase() === 'android'; uni.onLocaleChange((e) => {