Skip to content

Commit

Permalink
Create zh-CN (#1861)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerrys-C authored Nov 3, 2023
1 parent 0cd7602 commit 8f5cc11
Show file tree
Hide file tree
Showing 20 changed files with 2,210 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/client/i18n.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const i18n = {
locales: ["en", "en-gb", "ru", "cn", "tc", "fr-FR", "de-DE", "pt-BR", "cs-CZ", "nl-BE"],
locales: ["en", "en-gb", "ru", "cn", "tc", "fr-FR", "de-DE", "pt-BR", "cs-CZ", "nl-BE", "zh-CN"],
defaultLocale: "en",
};
2 changes: 1 addition & 1 deletion apps/client/locales/cn/calls.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"tow": "拖车",
"towLogs": "拖车记录",
"taxi": "出租车",
"active911Calls": "活动 911 呼叫",
"active911Calls": "活跃 911 呼叫",
"noTowCalls": "还没有拖车呼叫",
"noTaxiCalls": "目前还没有出租车呼叫",
"no911Calls": "目前还没有911电话",
Expand Down
2 changes: 1 addition & 1 deletion apps/client/locales/cn/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"citizens": "公民",
"bleeter": "布利特",
"taxi": "出租车",
"business": "业务",
"business": "企业",
"truckLogs": "卡车原木",
"admin": "管理",
"dispatch": "调度",
Expand Down
12 changes: 6 additions & 6 deletions apps/client/locales/cn/leo.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
"addSeizedItem": "添加扣押项目",
"seizedItems": "扣押物品",
"callsignPreview": "呼号预览",
"activeIncidents": "活动事件",
"noActiveIncidents": "没有活动事件",
"activeIncidents": "活跃事件",
"noActiveIncidents": "没有活跃事件",
"incident": "事件",
"endIncident": "结束事件",
"end": "结束",
Expand Down Expand Up @@ -191,10 +191,10 @@
"noAwards": "这个单位还没有奖项。",
"addAward": "添加奖励",
"award": "奖项",
"activeCall": "活动呼叫",
"activeCall": "活跃呼叫",
"arrestReportLogs": "逮捕报告日志",
"activeUnits": "活动单位",
"noActiveUnits": "实时地图上没有活动单位",
"activeUnits": "活跃单位",
"noActiveUnits": "实时地图上没有活跃单位",
"player": "玩家",
"cadUsername": "CAD 用户名",
"emsFd": "EMS-FD",
Expand Down Expand Up @@ -222,7 +222,7 @@
"editBolo": "编辑Bolo",
"createBolo": "创建Bolo",
"typeBolos": "{type} bolos",
"noActiveBolosForType": "没有活动的 bolos 类型: {type}",
"noActiveBolosForType": "没有活跃的 bolos 类型: {type}",
"person": "",
"vehicle": "车辆",
"other": "其他",
Expand Down
63 changes: 63 additions & 0 deletions apps/client/locales/zh-CN/account.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"Account": {
"account": "账户",
"accountInfo": "账户信息",
"accountSettings": "账户设置",
"passwordSettings": "密码设置",
"appearanceSettings": "外观设置",
"connections": "连接",
"connectDiscord": "连接 Discord 账户",
"disconnectDiscord": "断开 Discord 账户",
"disconnectText": "这将取消通过 Discord 登录的能力。",
"disabledDisconnectText": "当启用 '禁止普通登录' 时,您无法断开 Discord 连接。要删除您的账户,请联系管理员。",
"connectText": "这将添加通过 Discord 登录的能力。",
"disconnecting": "正在断开连接...",
"currentPassword": "当前密码",
"newPassword": "新密码",
"2fa": "双因素身份验证",
"confirmNewPassword": "确认新密码",
"scanQRCode": "扫描此二维码以添加到您的身份验证器应用",
"verifyCode": "通过输入身份验证器应用中的代码进行验证",
"disable": "禁用",
"enable2FA": "启用双因素身份验证",
"disable2FA": "禁用双因素身份验证",
"next": "下一步",
"verify": "验证",
"enable2faSuccess": "成功启用双因素身份验证",
"disable2faSuccess": "成功禁用双因素身份验证",
"darkTheme": "暗黑主题",
"statusView": "状态视图",
"tableAlignment": "表格操作对齐",
"sounds": "声音",
"panicButton": "紧急按钮",
"signal100": "Signal 100",
"stopRoleplay": "停止角色扮演",
"addedToCall": "已添加到呼叫",
"statusUpdate": "状态更新",
"incomingCall": "来电",
"dotColor": "点颜色",
"fullRowColor": "整行颜色",
"userApiToken": "用户 API 令牌",
"reGenerateToken": "重新生成令牌",
"token": "令牌",
"discord": "Discord",
"steam": "Steam",
"connectSteam": "连接 Steam 账户",
"disconnectSteam": "断开 Steam 账户",
"disconnectSteamText": "这将取消通过 Steam 登录的能力。",
"connectSteamText": "这将添加通过 Steam 登录的能力。",
"locale": "语言设置",
"viewMyPermissions": "查看我的权限",
"speech": "语音",
"speechVoice": "语音语言",
"otherSounds": "其他声音",
"unavailableSounds": "不可用声音",
"unavailableSoundsMessage": "这些声音不可用。必须由管理员添加。",
"userApiTokenDescription": "此令牌可用于与 SnailyCAD 的 API 进行通信。",
"developerMode": "开发者模式",
"statusViewDescription": "在活跃单位列表中显示状态代码(10-code)的颜色方式。"
},
"Notifications": {
"CITIZEN_DELETED": "<span>{citizen}</span> 被删除。原因:{reason}"
}
}
194 changes: 194 additions & 0 deletions apps/client/locales/zh-CN/admin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
{
"Management": {
"management": "管理",
"adminDashboard": "管理员仪表板",
"MANAGE_CITIZENS": "管理公民",
"MANAGE_BUSINESSES": "管理企业",
"MANAGE_USERS": "管理用户",
"MANAGE_UNITS": "管理单位",
"MANAGE_EXPUNGEMENT_REQUESTS": "管理清除记录请求",
"MANAGE_NAME_CHANGE_REQUESTS": "管理更名请求",
"MANAGE_CAD_SETTINGS": "CAD设置",
"MANAGE_CUSTOM_FIELDS": "管理自定义字段",
"MANAGE_CUSTOM_ROLES": "管理自定义角色",
"MANAGE_COURTHOUSE": "管理法院",
"MANAGE_PENDING_WARRANTS": "管理待处理的逮捕令",
"MANAGE_AUDIT_LOGS": "管理审计日志",
"import": "导入",
"IMPORT_CITIZENS": "导入公民",
"IMPORT_VEHICLES": "导入车辆",
"IMPORT_WEAPONS": "导入武器",
"allUsers": "所有用户",
"pendingUsers": "待处理用户",
"viewInfo": "查看信息",
"noCitizens": "此CAD尚无公民。",
"noBusinesses": "此CAD尚无企业。",
"noUnits": "尚无单位",
"user": "用户",
"owner": "所有者",
"owners": "所有者",
"GENERAL_SETTINGS": "常规设置",
"FEATURES": "特性",
"MISC_SETTINGS": "其他设置",
"DEFAULT_PERMISSIONS": "默认权限",
"API_TOKEN": "API令牌",
"DISCORD_ROLES": "Discord身份组",
"DISCORD_WEBHOOKS": "Discord Webhooks",
"deleteBusiness": "删除企业",
"giveTempPassword": "提供临时密码",
"continue": "是的,继续。",
"reGenerateToken": "重新生成令牌",
"inBolo": "在BOLO中",
"pendingBusinesses": "待处理企业",
"status": "状态",
"allBusinesses": "所有企业",
"whitelisted": "白名单",
"declineUnit": "拒绝单位",
"action": "操作",
"noPendingOfficers": "没有警员正在等待访问部门。",
"allUnits": "所有单位",
"departmentWhitelisting": "部门白名单设置({length})",
"importViaFile": "通过文件导入",
"managePermissions": "管理权限",
"detailedPermissions": "详细权限",
"useOldPermissions": "使用旧权限",
"useNewPermissions": "使用新权限",
"setSelectedOffDuty": "设置选定的单位休假",
"createCustomField": "创建自定义字段",
"editCustomField": "编辑自定义字段",
"noCustomFields": "尚无自定义字段",
"deleteCustomField": "删除自定义字段",
"deleteUnit": "删除单位",
"callsignManagement": "呼号管理",
"customRoles": "自定义角色",
"createCustomRole": "创建自定义角色",
"noCustomRoles": "尚无自定义角色。",
"deleteCustomRole": "删除自定义角色",
"editCustomRole": "编辑自定义角色",
"manageRoles": "管理角色",
"roles": "角色",
"editUser": "编辑用户",
"editing": "您当前正在编辑<span>{user}</span>",
"editUnit": "编辑单位",
"users": "用户",
"pending": "待处理",
"banned": "已封禁",
"officers": "警员",
"emsFdDeputies": "EMS/FD副手",
"citizens": "公民",
"arrested": "被逮捕",
"dead": "死亡",
"images": "图像",
"created": "创建",
"registered": "注册",
"active": "活跃",
"vehicles": "车辆",
"leo": "执法人员",
"emsFd": "EMS/FD",
"onDuty": "执勤中",
"impounded": "扣押",
"suspended": "暂停",
"pruneUsers": "清除用户",
"inactiveUsers": "非活跃用户",
"lastSeen": "最后查看",
"viewDiff": "查看差异",
"executor": "执行者",
"auditLogDiff": "审计日志差异",
"noAuditLogDiff": "此操作没有差异。",
"connectToUser": "连接到用户",
"pruneUnits": "清除单位",
"inactiveUnits": "非活跃单位",
"findInactiveUnits": "查找非活跃单位",
"departmentTimeLogs": "部门/单位时间日志",
"startDate": "开始日期(首次出现)",
"endDate": "结束日期(首次出现)",
"departments": "部门",
"units": "单位",
"groupBy": "按组分组",
"pruneUnitsDescription": "这将允许你清除一段时间内未活跃的单位。您可以删除单位或设置不同的部门。",
"manageCourthouseDescription": "在这里,您可以管理清除记录请求、更名请求和待处理的逮捕令。",
"manageCustomFieldsDescription": "在这里,您可以管理自定义字段。任何警员都可以将这些字段添加到名称搜索中的公民。",
"manageCustomRolesDescription": "在这里,您可以管理自定义角色。可以将这些角色分配给用户,而不是逐个授予权限。",
"importCitizensDescription": "在这里,您可以批量导入可能未与注册用户连接的公民。",
"importVehiclesDescription": "在这里,您可以批量导入注册到公民的车辆。在下表中,您可以查看所有注册车辆。",
"importWeaponsDescription": "在这里,您可以批量导入注册到公民的武器。在下表中,您可以查看所有注册武器。",
"RAW_WEBHOOKS": "原始Webhooks",
"LIVE_MAP": "实时地图",
"addCitizenEntry": "添加公民条目",
"submit": "提交",
"30Days": "30天",
"3Months": "3个月",
"6Months": "6个月",
"clickToExpand": "点击展开",
"keep": "保留",
"usersPruned": "用户已清除",
"usersPrunedMessage": "成功清除了{count}个用户",
"acceptUser": "接受用户",
"username": "用户名",
"rank": "级别",
"adminPermissions": "管理员权限",
"leoPermissions": "执法人员权限",
"emsFdPermissions": "EMS/FD权限",
"dispatchPermissions": "调度权限",
"whitelistStatus": "白名单状态",
"noUsersPending": "没有用户等待访问。",
"filter": "过滤",
"total": "总计",
"seconds": "",
"minutes": "分钟",
"hours": "小时",
"admin": "管理员",
"courthouseAdmin": "法院管理员",
"dispatch": "调度",
"citizenRelated": "与公民相关",
"other": "其他",
"category": "类别",
"permissions": "权限",
"discordRole": "Discord角色",
"unableToLoadStatisticsMessage": "无法加载统计数据,请稍后重试。",
"unableToLoadStatisticsTitle": "无法加载统计数据",
"userNotFoundError": "找不到您尝试管理的用户。",
"userNotFoundTitle": "找不到用户",
"alert_deleteCustomRole": "您确定要删除<span>{role}</span>吗?此操作无法撤消",
"alert_deleteUnit": "您确定要删除<span>{unit}</span>吗?此操作无法撤消!",
"alert_deleteCustomField": "您确定要删除此自定义字段吗?此操作无法撤消。使用此字段创建的所有值也将被删除。",
"info_pendingBusinesses": "这些是已创建的企业,正在等待批准以使用。接受或拒绝它们。",
"alert_deleteBusiness": "您确定要删除<span>{name}</span>吗?所有其数据都将丢失。此操作无法撤消。",
"webhooks": "Webhooks",
"general": "常规",
"miscellaneous": "杂项",
"WHITELIST_SETTINGS": "白名单设置",
"INACTIVITY_TIMEOUTS": "非活跃超时",
"CITIZEN_LICENSE_POINTS": "公民执照点",
"MAX_LICENSE_POINTS": "最大执照点",
"TEMPLATES": "模板",
"OTHER": "其他",
"integrations": "集成",
"LIMITS": "限制",
"BLACKLISTED_WORDS": "黑名单词汇"
},
"AuditLogs": {
"userBanned": "用户:<span>{value}</span>已被封禁。",
"userUnbanned": "用户:<span>{value}</span>已被解封。",
"deletedEntry": "已删除带有ID:<span>{value}</span>的项目。",
"createdEntry": "已创建带有ID:<span>{value}</span>的项目。",
"deleteUserApiToken": "用户:<span>{value}</span>的个人API令牌已被删除。",
"deleteUser2FA": "用户:<span>{value}</span>的2FA已被删除。",
"tempPasswordGiven": "用户:<span>{value}</span>已被给予临时密码。",
"unitsSetOffDuty": "已设置选定的单位结束执勤:<span>{value}</span>",
"calls911Purged": "已清除选定的呼叫。这些呼叫无法恢复,并已永久删除:<span>{value}</span>。",
"cadAPITokenRegenerated": "CAD API令牌已重新生成。",
"temporaryUnitCreate": "已创建临时单位,ID为:<span>{value}</span>。",
"cadAPITokenRemoved": "CAD API令牌已移除。",
"cadAPITokenEnabled": "CAD API令牌已启用。",
"expungementAccepted": "已接受带有公民ID:<span>{value}</span>的清除记录请求。",
"expungementDeclined": "已拒绝带有公民ID:<span>{value}</span>的清除记录请求。",
"nameChangeRequestAccepted": "已接受带有公民ID:<span>{value}</span>的更名请求。",
"nameChangeRequestDeclined": "已拒绝带有公民ID:<span>{value}</span>的更名请求。",
"activeWarrantAccepted": "已接受带有ID:<span>{value}</span>的活跃逮捕令请求。",
"activeWarrantDeclined": "已拒绝带有ID:<span>{value}</span>的活跃逮捕令请求。",
"bulkRemoveValues": "已移除选定的值:<span>{value}</span>",
"leoIncidentsPurged": "已清除选定的LEO事件。这些事件无法恢复,并已永久删除:<span>{value}</span>。",
"emsFdIncidentsPurged": "已清除选定的EMS/FD事件。这些事件无法恢复,并已永久删除:<span>{value}</span>。"
}
}
34 changes: 34 additions & 0 deletions apps/client/locales/zh-CN/auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"Auth": {
"register": "注册",
"login": "登录",
"createAccount": "创建账户",
"username": "用户名",
"password": "密码",
"confirmPassword": "确认密码",
"noAccount": "还没有账户?在这里注册。",
"hasAccount": "已有账户?在这里登录。",
"show": "显示",
"hide": "隐藏",
"registrationCode": "邀请码",
"changePassword": "修改密码",
"totpCode": "2FA码",
"twoFactorCode": "两步验证码",
"savePasswordInfo": "请确保安全保存新密码,以防再次发生此情况!",
"loginViaDiscord": "通过Discord登录",
"continueAs": "继续作为 {username}",
"sixDigitCode": "请从您的身份验证器应用输入6位代码",
"loginViaSteam": "通过Steam登录",
"or": "",
"accountPending": "账户待定",
"accountPendingText": "您的账户正在等待审核。在等待期间,您可以同步第三方连接。一旦您的账户获得批准,您就可以登录。",
"syncDiscord": "同步Discord",
"syncSteam": "同步Steam",
"discordSyncSuccess": "成功同步Discord账户。",
"steamSyncSuccess": "成功同步Steam账户。",
"connections": "连接",
"connectionsText": "您需要连接到以下服务才能继续。",
"forceAccountPassword": "此CAD要求您在账户上设置密码。请在下面设置密码。",
"noThirdPartyConnections": "没有可用的第三方连接。"
}
}
25 changes: 25 additions & 0 deletions apps/client/locales/zh-CN/bleeter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Bleeter": {
"bleeter": "Bleeter",
"noPosts": "目前还没有 Bleeter 帖子。请稍后再查看。",
"createBleet": "创建 Bleet",
"editBleet": "编辑 Bleet",
"deleteBleet": "删除 Bleet",
"viewBleet": "查看 Bleet",
"headerImage": "标题图像",
"bleetTitle": "Bleet 标题",
"bleetBody": "Bleet 正文",
"followers": "关注者",
"following": "正在关注",
"follow": "关注",
"unfollow": "取消关注",
"editProfile": "编辑个人资料",
"posts": "帖子",
"myProfile": "我的个人资料",
"save": "保存",
"getStarted": "开始使用",
"unVerifyProfile": "取消验证个人资料",
"verifyProfile": "验证个人资料",
"alert_deleteBleet": "您确定要删除 \"<span>{title}</span>\" 吗?此操作无法撤消。"
}
}
Loading

0 comments on commit 8f5cc11

Please sign in to comment.