🔀 Merge pull request #195 from FormatToday/master

add Chinese translation
This commit is contained in:
Alicia Sykes 2021-09-01 10:32:10 +01:00 committed by GitHub
commit a574e0a7ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 178 additions and 0 deletions

View File

@ -0,0 +1,171 @@
{
"home": {
"no-results": "找不到结果",
"no-data": "没有配置数据"
},
"search": {
"search-label": "搜索",
"search-placeholder": "输入以筛选",
"clear-search-tooltip": "清空搜索",
"enter-to-search-web": "点击回车搜索"
},
"login": {
"title": "Dashy",
"username-label": "用户名",
"password-label": "密码",
"login-button": "登陆",
"remember-me-label": "记住密码",
"remember-me-never": "永不",
"remember-me-hour": "4 小时",
"remember-me-day": "1 天",
"remember-me-week": "1 周",
"error-missing-username": "用户名空缺",
"error-missing-password": "密码空缺",
"error-incorrect-username": "用户名不存在",
"error-incorrect-password": "密码不存在",
"success-message": "登陆成功。。。",
"logout-message": "注销",
"already-logged-in-title": "已经成功登陆",
"already-logged-in-text": "你的登陆身份",
"proceed-to-dashboard": "前往仪表板",
"log-out-button": "注销",
"proceed-guest-button": "以游客身份前往"
},
"config": {
"main-tab": "主菜单",
"view-config-tab": "视图设置",
"edit-config-tab": "编辑设置",
"custom-css-tab": "自定义样式",
"heading": "设置选项",
"download-config-button": "下载配置",
"edit-config-button": "编辑设置",
"edit-css-button": "编辑自定义 CSS",
"cloud-sync-button": "启用云端同步",
"edit-cloud-sync-button": "编辑云端同步",
"rebuild-app-button": "重建应用",
"change-language-button": "更改语言",
"reset-settings-button": "恢复本地设置",
"app-info-button": "应用详情",
"backup-note": "建议在进行更改之前备份您的配置。",
"reset-config-msg-l1": "这将从本地存储中删除所有用户设置但不会影响conf.yml文件。",
"reset-config-msg-l2": "如果想在以后使用它们,应该首先备份您所做的任何更改。",
"reset-config-msg-l3": "确定执行吗?",
"data-cleared-msg": "成功清空数据",
"actions-label": "行为",
"copy-config-label": "复制设置",
"data-copied-msg": "设置已保存在剪切板",
"reset-config-label": "重置设置",
"css-save-btn": "保存更改",
"css-note-label": "注意",
"css-note-l1": "您需要刷新页面才能使更改生效。",
"css-note-l2": "样式覆盖仅存储在本地,因此建议复制您的 CSS。",
"css-note-l3": "要删除所有自定义样式,请删除内容并点击保存更改"
},
"alternate-views": {
"default": "默认",
"workspace": "工作空间",
"minimal": "最小化"
},
"settings": {
"theme-label": "主题",
"layout-label": "布局",
"layout-auto": "自动",
"layout-horizontal": "水平",
"layout-vertical": "垂直",
"item-size-label": "尺寸",
"item-size-small": "小",
"item-size-medium": "中",
"item-size-large": "大",
"config-launcher-label": "设置",
"config-launcher-tooltip": "更新设置",
"sign-out-tooltip": "注销",
"sign-in-tooltip": "登陆",
"sign-in-welcome": "您好 {username}"
},
"updates": {
"app-version-note": "Dashy 版本",
"up-to-date": "已经是最新版了",
"out-of-date": "存在可用更新",
"unsupported-version-l1": "您使用的是不受支持的 Dashy 版本",
"unsupported-version-l2": "为获得最佳体验和最近的安全补丁,请更新至"
},
"language-switcher": {
"title": "更改应用语言",
"dropdown-label": "选择一个语言",
"save-button": "保存",
"success-msg": "语言切换至"
},
"theme-maker": {
"title": "主题编辑器",
"export-button": "导出自定义变量",
"reset-button": "重置样式",
"show-all-button": "显示所有变量",
"save-button": "保存",
"cancel-button": "取消",
"saved-toast": "{theme} 更新成功",
"copied-toast": "{theme} 的主题数据已复制到剪切板",
"reset-toast": "{theme} 的自定义颜色已经移除"
},
"config-editor": {
"save-location-label": "保存位置",
"location-local-label": "本地保存",
"location-disk-label": "将保存写入文件",
"save-button": "保存变更",
"valid-label": "设置有效",
"status-success-msg": "任务完成",
"status-fail-msg": "任务失败",
"success-msg-disk": "配置文件写入硬盘成功",
"success-msg-local": "本地变更保存成功",
"success-note-l1": "应用需要自动重建",
"success-note-l2": "这将持续一段时间",
"success-note-l3": "你需要刷新页面以使变更生效",
"error-msg-save-mode": "请选择保存位置:本地或者文件",
"error-msg-cannot-save": "保存配置时出错",
"error-msg-bad-json": "JSON 错误,可能格式错误",
"warning-msg-validation": "验证警告",
"not-admin-note": "您不能将更改写入磁盘,因为您没有以管理员身份登录"
},
"app-rebuild": {
"title": "重建应用",
"rebuild-note-l1": "写入 conf.yml 文件的更改需要重建应用才能生效。",
"rebuild-note-l2": "这应该是自动运行的,但如果没有生效,您可以在此处手动执行。",
"rebuild-note-l3": "这对于本地存储的修改不是必需的。",
"rebuild-button": "开始重建",
"rebuilding-status-1": "重建中...",
"rebuilding-status-2": "这将持续一段时间",
"error-permission": "您没有权限执行此操作",
"success-msg": "重建成功",
"fail-msg": "重建失败",
"reload-note": "你需要刷新页面以使变更生效",
"reload-button": "刷新页面"
},
"cloud-sync": {
"title": "云备份 & 云恢复",
"intro-l1": "云备份和云恢复是一项试验性功能,您将配置上传到网络,然后在其他设备或 Dashy 实例上恢复。",
"intro-l2": "所有数据都使用 AES 端到端加密,使用您的密码作为密钥。",
"intro-l3": "有关更多信息,请参阅",
"backup-title-setup": "创建备份",
"backup-title-update": "更新备份",
"password-label-setup": "选择密码",
"password-label-update": "输入密码",
"backup-button-setup": "备份",
"backup-button-update": "更新备份",
"backup-id-label": "你的恢复 ID",
"backup-id-note": "这用于以后从备份中恢复。 所以把它和你的密码一起在安全的地方保存。",
"restore-title": "恢复备份",
"restore-id-label": "恢复 ID",
"restore-password-label": "密码",
"restore-button": "恢复",
"backup-missing-password": "缺少密码",
"backup-error-unknown": "无法处理请求",
"backup-error-password": "密码错误,请重新输入",
"backup-success-msg": "备份完成",
"restore-success-msg": "恢复完成"
},
"menu": {
"sametab": "在当前页打开",
"newtab": "在新标签页打开",
"modal": "在弹出窗口打开",
"workspace": "在工作空间打开"
}
}

View File

@ -4,6 +4,7 @@ import de from '@/assets/locales/de.json';
import nl from '@/assets/locales/nl.json';
import fr from '@/assets/locales/fr.json';
import sl from '@/assets/locales/sl.json';
import zhCN from '@/assets/locales/zh-CN.json';
// Language data - Add your country name, locale code and imported file here
export const languages = [
@ -37,6 +38,12 @@ export const languages = [
locale: sl,
flag: '🇸🇮',
},
{
name: '简体中文',
code: 'cn',
locale: zhCN,
flag: '🇨🇳',
},
// Including:
// name - Human readable name for your language (e.g German)
// code - ISO language code (e.g. de)