add i18n step1
This commit is contained in:
parent
34d553a890
commit
79e3db6078
23 changed files with 2309 additions and 450 deletions
140
frontend/locales/zh-CN.json
Normal file
140
frontend/locales/zh-CN.json
Normal file
|
|
@ -0,0 +1,140 @@
|
|||
{
|
||||
"nav": {
|
||||
"configs": "站点配置",
|
||||
"global": "全局配置",
|
||||
"settings": "面板设置",
|
||||
"logout": "退出登录"
|
||||
},
|
||||
"status": {
|
||||
"checking": "检查中...",
|
||||
"running": "运行中",
|
||||
"stopped": "已停止",
|
||||
"unknown": "状态未知"
|
||||
},
|
||||
"caddy": {
|
||||
"start_btn": "启动 Caddy",
|
||||
"stop_btn": "停止 Caddy",
|
||||
"reload_btn": "重载配置"
|
||||
},
|
||||
"common": {
|
||||
"save": "保存",
|
||||
"cancel": "取消",
|
||||
"append": "追加",
|
||||
"replace": "替换",
|
||||
"back_to_list": "返回列表",
|
||||
"error_prefix": "错误",
|
||||
"loading": "加载中...",
|
||||
"logout": "退出登录"
|
||||
},
|
||||
"pages": {
|
||||
"configs": {
|
||||
"page_title": "站点配置 - CaddyDash",
|
||||
"title": "站点配置",
|
||||
"add_new_btn": "创建新配置",
|
||||
"form_title_create": "创建新配置",
|
||||
"form_title_edit": "编辑配置",
|
||||
"listtitle": "站点配置管理",
|
||||
"rendered_caddyfile_title": "渲染后的 Caddyfile"
|
||||
},
|
||||
"global": {
|
||||
"page_title": "全局配置 - CaddyDash",
|
||||
"title": "全局 Caddyfile 配置",
|
||||
"description": "修改这些配置将会重写您的主 Caddyfile 并触发 Caddy 重载",
|
||||
"save_btn": "保存并重载"
|
||||
},
|
||||
"settings": {
|
||||
"page_title": "面板设置 - CaddyDash",
|
||||
"title": "面板设置",
|
||||
"account_security_title": "账户安全",
|
||||
"language_label": "语言",
|
||||
"current_password_label": "当前密码",
|
||||
"new_password_label": "新密码 (至少8位)",
|
||||
"confirm_new_password_label": "确认新密码",
|
||||
"reset_password_btn": "重置密码",
|
||||
"resetting_password_btn": "重置中..."
|
||||
},
|
||||
"login": {
|
||||
"page_title": "登录 - CaddyDash",
|
||||
"welcome": "欢迎使用 CaddyDash",
|
||||
"prompt": "请输入您的凭证以继续",
|
||||
"username_label": "用户名",
|
||||
"password_label": "密码",
|
||||
"login_btn": "登录",
|
||||
"logging_in_btn": "登录中..."
|
||||
},
|
||||
"init": {
|
||||
"page_title": "首次设置 - CaddyDash",
|
||||
"title": "欢迎使用 CaddyDash",
|
||||
"prompt": "请创建您的管理员账户以完成首次设置",
|
||||
"admin_user_label": "管理员用户名",
|
||||
"password_label": "密码 (至少8位)",
|
||||
"confirm_password_label": "确认密码",
|
||||
"setup_btn": "完成设置",
|
||||
"setting_up_btn": "设置中..."
|
||||
}
|
||||
},
|
||||
"form": {
|
||||
"legend_basic": "基础配置",
|
||||
"domain_label": "主域名 (将用作文件名)",
|
||||
"legend_service_mode": "服务模式",
|
||||
"mode_none": "无",
|
||||
"mode_rp": "反向代理",
|
||||
"mode_fs": "文件服务",
|
||||
"legend_rp": "反向代理配置",
|
||||
"upstream_addr_label": "上游服务地址",
|
||||
"upstream_addr_placeholder": "例如: 127.0.0.1:8080",
|
||||
"enable_multi_upstream": "启用多上游负载均衡",
|
||||
"upstream_servers_label": "上游服务器列表",
|
||||
"add_upstream_server_btn": "添加上游服务器",
|
||||
"upstream_server_placeholder": "例如: 127.0.0.1:8081",
|
||||
"upstream_headers_label": "上游请求头 (Upstream Headers)",
|
||||
"fill_from_preset": "从预设填充",
|
||||
"add_header_btn": "添加请求头",
|
||||
"legend_fs": "文件服务配置",
|
||||
"fs_root_label": "根目录路径",
|
||||
"fs_root_placeholder": "例如: /srv/www",
|
||||
"enable_fs_browser": "启用文件浏览器",
|
||||
"legend_global_headers": "全局请求头 (Headers)",
|
||||
"legend_features": "附加功能",
|
||||
"feature_log": "启用日志",
|
||||
"feature_error_page": "启用错误页",
|
||||
"feature_encode": "启用压缩"
|
||||
},
|
||||
"dialogs": {
|
||||
"unsaved_changes_title": "未保存的更改",
|
||||
"unsaved_changes_msg": "您有未保存的更改确定要放弃吗?",
|
||||
"delete_config_title": "确认删除",
|
||||
"delete_config_msg": "您确定要删除 \"{filename}\" 吗?",
|
||||
"stop_caddy_msg": "您确定要停止 Caddy 实例吗?",
|
||||
"reload_caddy_msg": "确定要重载 Caddy 配置吗?",
|
||||
"logout_msg": "您确定要退出登录吗?",
|
||||
"preset_fill_title": "填充方式",
|
||||
"preset_fill_msg": "您希望如何应用这个预设?",
|
||||
"confirm_btn": "确定",
|
||||
"cancel_btn": "取消"
|
||||
},
|
||||
"toasts": {
|
||||
"save_success": "配置已成功保存",
|
||||
"save_error": "保存配置失败: {error}",
|
||||
"reload_sent": "重载命令已发送",
|
||||
"delete_success": "配置已成功删除",
|
||||
"delete_error": "删除配置失败: {error}",
|
||||
"load_configs_error": "加载站点配置列表失败: {error}",
|
||||
"load_config_detail_error": "加载配置详情失败: {error}",
|
||||
"error_domain_empty": "域名不能为空",
|
||||
"loading_preset": "正在加载预设...",
|
||||
"preset_no_data": "此预设无数据",
|
||||
"load_preset_error": "加载预设失败: {error}",
|
||||
"preset_fill_success": "已成功填充预设 \"{presetName}\"",
|
||||
"no_presets_available": "没有适用于此区域的预设",
|
||||
"logout_processing": "正在退出...",
|
||||
"error_username_empty": "用户名不能为空",
|
||||
"error_password_empty": "密码不能为空",
|
||||
"login_success": "登录成功!正在跳转...",
|
||||
"login_error_generic": "登录失败请检查您的凭证",
|
||||
"init_error_mismatch": "两次输入的密码不一致",
|
||||
"init_error_short": "密码至少需要 {minLength} 位字符",
|
||||
"init_success": "设置完成!正在跳转到登录页...",
|
||||
"init_error_generic": "初始化失败,请重试"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue