fix: onPageNotFound 兜底防空页崩溃 + 首页/记录页接入 i18n(语言切换覆盖全部3个tab)
这个提交包含在:
@@ -0,0 +1,31 @@
|
||||
// "记录" (history) page strings.
|
||||
module.exports = {
|
||||
zh: {
|
||||
statTotal: '累计次数',
|
||||
statHours: '累计时长',
|
||||
statMonth: '本月次数',
|
||||
recentTitle: '最近记录',
|
||||
smart: '✨ 智能',
|
||||
normal: '🔄 普通',
|
||||
empty: '暂无使用记录',
|
||||
loadingMore: '加载更多...',
|
||||
durationMin: '{min}分钟',
|
||||
today: '今天',
|
||||
yesterday: '昨天',
|
||||
dateMd: '{m}月{d}日'
|
||||
},
|
||||
en: {
|
||||
statTotal: 'Total Sessions',
|
||||
statHours: 'Total Hours',
|
||||
statMonth: 'This Month',
|
||||
recentTitle: 'Recent Records',
|
||||
smart: '✨ Smart',
|
||||
normal: '🔄 Normal',
|
||||
empty: 'No records yet',
|
||||
loadingMore: 'Loading more...',
|
||||
durationMin: '{min} min',
|
||||
today: 'Today',
|
||||
yesterday: 'Yesterday',
|
||||
dateMd: '{m}/{d}'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
// "首页" (index) page strings.
|
||||
module.exports = {
|
||||
zh: {
|
||||
noDevice: '还没有绑定设备',
|
||||
addDevice: '扫码添加设备',
|
||||
myDevice: '我的设备',
|
||||
connected: '已连接',
|
||||
disconnected: '未连接',
|
||||
reconnect: '重新连接',
|
||||
smartRemain: '智能模式 · 剩余{days}天',
|
||||
notSubscribed: '未订阅智能模式',
|
||||
smartOpen: '智能模式已开放',
|
||||
start: '开始使用',
|
||||
deviceManage: '设备管理',
|
||||
connectFailed: '连接失败',
|
||||
unbindAction: '解绑当前设备',
|
||||
unbindConfirmTitle: '确认解绑',
|
||||
unbindConfirmText: '解绑后将无法使用该设备,确定要解绑吗?',
|
||||
unbindLoading: '解绑中...',
|
||||
unbindDone: '已解绑',
|
||||
unbindFailed: '解绑失败'
|
||||
},
|
||||
en: {
|
||||
noDevice: 'No device bound yet',
|
||||
addDevice: 'Scan to add device',
|
||||
myDevice: 'My Device',
|
||||
connected: 'Connected',
|
||||
disconnected: 'Disconnected',
|
||||
reconnect: 'Reconnect',
|
||||
smartRemain: 'Smart Mode · {days} days left',
|
||||
notSubscribed: 'Smart Mode not subscribed',
|
||||
smartOpen: 'Smart Mode available',
|
||||
start: 'Start',
|
||||
deviceManage: 'Manage Device',
|
||||
connectFailed: 'Connection failed',
|
||||
unbindAction: 'Unbind current device',
|
||||
unbindConfirmTitle: 'Confirm Unbind',
|
||||
unbindConfirmText: 'You will not be able to use this device after unbinding. Continue?',
|
||||
unbindLoading: 'Unbinding...',
|
||||
unbindDone: 'Unbound',
|
||||
unbindFailed: 'Unbind failed'
|
||||
}
|
||||
}
|
||||
@@ -7,13 +7,17 @@ var profile = require('./profile')
|
||||
var lightInfo = require('./lightInfo')
|
||||
var manual = require('./manual')
|
||||
var report = require('./report')
|
||||
var home = require('./home')
|
||||
var history = require('./history')
|
||||
|
||||
var namespaces = {
|
||||
common: common,
|
||||
profile: profile,
|
||||
lightInfo: lightInfo,
|
||||
manual: manual,
|
||||
report: report
|
||||
report: report,
|
||||
home: home,
|
||||
history: history
|
||||
}
|
||||
|
||||
var zh = {}
|
||||
|
||||
在新工单中引用
屏蔽一个用户