- {{ appStore.connectState ? "欢迎你~,连接成功!" : "欢迎你~,点击右上角“连接”按钮连接手台。" }}
+ {{ appStore.connectState ? $t('workplace.welcomeSuc') : $t('workplace.welcome') }}
-
- 当前固件版本:{{ appStore.firmwareVersion }}
- 匹配写频配置:{{ appStore.configuration?.name }}
- 存储大小:{{ state.eepromSize }} 检测
+
+ {{ $t('workplace.current') }}{{ appStore.firmwareVersion }}
+ {{ $t('workplace.writeconfig') }}{{ appStore.configuration?.name }}
+ {{ $t('workplace.eepromSize') }}{{ state.eepromSize }} {{ $t('workplace.checkIt') }}
@@ -23,11 +23,13 @@
import { reactive } from 'vue';
import { useAppStore } from '@/store';
import { eeprom_write, eeprom_reboot, eeprom_init, eeprom_read } from '@/utils/serial.js';
+ import { useI18n } from 'vue-i18n';
+ const { t } = useI18n();
const appStore = useAppStore();
const state = reactive({
- eepromSize: "点击检测按钮检测"
+ eepromSize: t('workplace.clickCheck')
})
const checkEeprom = async () => {
diff --git a/src/views/dashboard/workplace/locale/en-US.ts b/src/views/dashboard/workplace/locale/en-US.ts
index 5eef6ad..f0d3e72 100644
--- a/src/views/dashboard/workplace/locale/en-US.ts
+++ b/src/views/dashboard/workplace/locale/en-US.ts
@@ -1,6 +1,13 @@
export default {
- 'menu.dashboard.workplace': 'Workplace',
- 'workplace.welcome': 'Welcome!',
+ 'menu.dashboard.workplace': 'Basic Information',
+ 'workplace.welcome': 'Welcome~, click the "Connect" button in the upper right corner to connect the UV-K5.',
+ 'workplace.welcomeSuc': 'Welcome~, connection successful.',
+ 'workplace.info': 'Information',
+ 'workplace.current': 'Current Firmware Version: ',
+ 'workplace.writeconfig': 'Write Configuration: ',
+ 'workplace.eepromSize': 'EEPROM Size: ',
+ 'workplace.clickCheck': 'Click the TEST button to test',
+ 'workplace.checkIt': 'TEST',
'workplace.balance': 'Balance (CNY)',
'workplace.order.pending': 'Pending',
'workplace.order.pendingRenewal': 'Renewal Order',
diff --git a/src/views/dashboard/workplace/locale/zh-CN.ts b/src/views/dashboard/workplace/locale/zh-CN.ts
index 791c266..9094d28 100644
--- a/src/views/dashboard/workplace/locale/zh-CN.ts
+++ b/src/views/dashboard/workplace/locale/zh-CN.ts
@@ -1,6 +1,13 @@
export default {
'menu.dashboard.workplace': '基础信息',
- 'workplace.welcome': '欢迎回来!',
+ 'workplace.welcome': '欢迎你~,点击右上角“连接”按钮连接手台。',
+ 'workplace.welcomeSuc': '欢迎你~,连接成功!',
+ 'workplace.info': '手台信息',
+ 'workplace.current': '当前固件版本:',
+ 'workplace.writeconfig': '匹配写频配置:',
+ 'workplace.eepromSize': '存储大小:',
+ 'workplace.clickCheck': '点击检测按钮检测',
+ 'workplace.checkIt': '检测',
'workplace.balance': '余额(元)',
'workplace.order.pending': '待支付',
'workplace.order.pendingRenewal': '待续费订单',