修复路由冲突和补充多语言
This commit is contained in:
@@ -60,6 +60,10 @@ class AppTranslations {
|
||||
/// 托盘相关翻译
|
||||
static final AppTranslationsTray kr_tray = AppTranslationsTray();
|
||||
|
||||
/// 设备管理翻译类
|
||||
static final AppTranslationsDeviceManagement kr_deviceManagement =
|
||||
AppTranslationsDeviceManagement();
|
||||
|
||||
/// 初始化翻译
|
||||
static void kr_initTranslations() {
|
||||
// Get.addTranslations({
|
||||
@@ -429,6 +433,15 @@ class AppTranslationsUserInfo {
|
||||
|
||||
final String download = '下载';
|
||||
final String upload = '上传';
|
||||
|
||||
/// 登录/注册
|
||||
String get loginRegister => 'userInfo.loginRegister'.tr;
|
||||
|
||||
/// 游客ID
|
||||
String guestId(int id) => 'userInfo.guestId'.trParams({'id': id.toString()});
|
||||
|
||||
/// 设备管理
|
||||
String get deviceManagement => 'userInfo.deviceManagement'.tr;
|
||||
}
|
||||
|
||||
class AppTranslationsSetting {
|
||||
@@ -817,6 +830,24 @@ class AppTranslationsDialog {
|
||||
|
||||
/// 我知道了按钮文本
|
||||
String get kr_iKnow => 'dialog.iKnow'.tr;
|
||||
|
||||
/// 提示
|
||||
String get tip => 'dialog.tip'.tr;
|
||||
|
||||
/// 删除
|
||||
String get delete => 'dialog.delete'.tr;
|
||||
|
||||
/// 错误
|
||||
String get error => 'dialog.error'.tr;
|
||||
|
||||
/// 成功
|
||||
String get success => 'dialog.success'.tr;
|
||||
|
||||
/// 设备登录绑定标题
|
||||
String get deviceLoginBindingTitle => 'dialog.deviceLoginBindingTitle'.tr;
|
||||
|
||||
/// 设备登录绑定消息
|
||||
String get deviceLoginBindingMessage => 'dialog.deviceLoginBindingMessage'.tr;
|
||||
}
|
||||
|
||||
/// 更新相关翻译
|
||||
@@ -932,3 +963,54 @@ class AppTranslationsTray {
|
||||
/// 退出应用
|
||||
String get exitApp => 'tray.exit_app'.tr;
|
||||
}
|
||||
|
||||
/// 设备管理模块的翻译类
|
||||
class AppTranslationsDeviceManagement {
|
||||
/// 设备管理标题
|
||||
String get title => 'deviceManagement.title'.tr;
|
||||
|
||||
/// 删除确认标题
|
||||
String get deleteConfirmTitle => 'deviceManagement.deleteConfirmTitle'.tr;
|
||||
|
||||
/// 删除当前设备消息
|
||||
String get deleteCurrentDeviceMessage =>
|
||||
'deviceManagement.deleteCurrentDeviceMessage'.tr;
|
||||
|
||||
/// 删除其他设备消息
|
||||
String get deleteOtherDeviceMessage =>
|
||||
'deviceManagement.deleteOtherDeviceMessage'.tr;
|
||||
|
||||
/// 删除成功
|
||||
String get deleteSuccess => 'deviceManagement.deleteSuccess'.tr;
|
||||
|
||||
/// 删除失败
|
||||
String deleteFailed(String error) =>
|
||||
'deviceManagement.deleteFailed'.trParams({'error': error});
|
||||
|
||||
/// 加载设备列表失败
|
||||
String get loadDeviceListFailed =>
|
||||
'deviceManagement.loadDeviceListFailed'.tr;
|
||||
|
||||
/// 设备登录未启用
|
||||
String get deviceLoginDisabled => 'deviceManagement.deviceLoginDisabled'.tr;
|
||||
|
||||
/// 重新登录成功
|
||||
String get reloginSuccess => 'deviceManagement.reloginSuccess'.tr;
|
||||
|
||||
/// 重新登录失败(带错误信息)
|
||||
String reloginFailed(String error) =>
|
||||
'deviceManagement.reloginFailed'.trParams({'error': error});
|
||||
|
||||
/// 重新登录失败(通用)
|
||||
String get reloginFailedGeneric =>
|
||||
'deviceManagement.reloginFailedGeneric'.tr;
|
||||
|
||||
/// 设备类型
|
||||
String get deviceTypeUnknown => 'deviceManagement.deviceTypes.unknown'.tr;
|
||||
String get deviceTypeAndroid => 'deviceManagement.deviceTypes.android'.tr;
|
||||
String get deviceTypeIos => 'deviceManagement.deviceTypes.ios'.tr;
|
||||
String get deviceTypeIpad => 'deviceManagement.deviceTypes.ipad'.tr;
|
||||
String get deviceTypeMacos => 'deviceManagement.deviceTypes.macos'.tr;
|
||||
String get deviceTypeWindows => 'deviceManagement.deviceTypes.windows'.tr;
|
||||
String get deviceTypeLinux => 'deviceManagement.deviceTypes.linux'.tr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user