Add Chinesse support.

This commit is contained in:
Paulo Gustavo Veiga 2022-03-13 23:26:24 -03:00
parent cf549a13e7
commit a9e36e9a05
8 changed files with 1653 additions and 3 deletions

View File

@ -0,0 +1,14 @@
{
"editor.try-welcome": {
"defaultMessage": "这个编辑区域展示了一些思维导图编辑器的功能!"
},
"editor.try-welcome-description": {
"defaultMessage": "注册后可以免费创建、分享和发布无限数量的思维导图。"
},
"login.signup": {
"defaultMessage": "注册"
},
"action.share": {
"defaultMessage": "分享"
}
}

View File

@ -3,6 +3,8 @@ import ES from './../../compiled-lang/es.json';
import EN from './../../compiled-lang/en.json'; import EN from './../../compiled-lang/en.json';
import DE from './../../compiled-lang/de.json'; import DE from './../../compiled-lang/de.json';
import RU from './../../compiled-lang/ru.json'; import RU from './../../compiled-lang/ru.json';
import ZH from './../../compiled-lang/zh.json';
class I18nMsg { class I18nMsg {
static loadLocaleData(locale: string) { static loadLocaleData(locale: string) {
@ -17,6 +19,8 @@ class I18nMsg {
return DE; return DE;
case 'ru': case 'ru':
return RU; return RU;
case 'zh':
return ZH;
default: default:
return EN; return EN;
} }

View File

@ -0,0 +1,26 @@
{
"action.share": [
{
"type": 0,
"value": "分享"
}
],
"editor.try-welcome": [
{
"type": 0,
"value": "这个编辑区域展示了一些思维导图编辑器的功能!"
}
],
"editor.try-welcome-description": [
{
"type": 0,
"value": "注册后可以免费创建、分享和发布无限数量的思维导图。"
}
],
"login.signup": [
{
"type": 0,
"value": "注册"
}
]
}

View File

@ -21,6 +21,7 @@ import EN from './en';
import DE from './de'; import DE from './de';
import FR from './fr'; import FR from './fr';
import RU from './ru'; import RU from './ru';
import ZH from './zh';
const Bundle = { const Bundle = {
es: ES, es: ES,
@ -28,6 +29,7 @@ const Bundle = {
de: DE, de: DE,
fr: FR, fr: FR,
ru: RU, ru: RU,
zh: ZH,
}; };
export default Bundle; export default Bundle;

View File

@ -0,0 +1,84 @@
const ZH = {
ZOOM_IN: '放大',
ZOOM_OUT: '缩小',
TOPIC_SHAPE: '主题形状',
TOPIC_ADD: '添加主题',
TOPIC_DELETE: '删除主题',
TOPIC_ICON: '添加图标',
TOPIC_LINK: '添加链接',
TOPIC_RELATIONSHIP: '关系',
TOPIC_COLOR: '主题颜色',
TOPIC_BORDER_COLOR: '主题边框颜色',
TOPIC_NOTE: '添加注释',
FONT_FAMILY: '字体类型',
FONT_SIZE: '文本大小',
FONT_BOLD: '粗体文本',
FONT_ITALIC: '斜体文本',
UNDO: '撤销',
REDO: '重做',
INSERT: '插入',
SAVE: '保存',
NOTE: '注释',
ADD_TOPIC: '添加主题',
LOADING: '加载......',
EXPORT: '导出',
PRINT: '打印',
PUBLISH: '发布',
COLLABORATE: '分享',
HISTORY: '历史',
DISCARD_CHANGES: '放弃更改',
FONT_COLOR: '文本颜色',
SAVING: '保存......',
SAVE_COMPLETE: '保存完成',
ZOOM_IN_ERROR: '放大比例过高。',
ZOOM_ERROR: '无法再缩放了。',
ONLY_ONE_TOPIC_MUST_BE_SELECTED: '无法创建主题。只能选择一个主题。',
ONE_TOPIC_MUST_BE_SELECTED: '无法创建主题。必须选择一个主题。',
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE: '无法折叠子节点,必须只选择一个主题。',
SAVE_COULD_NOT_BE_COMPLETED: '无法完成保存,请稍后再试。',
UNEXPECTED_ERROR_LOADING: "我们很抱歉,发生了意外错误。\n再次尝试重新加载编辑器。如果问题仍然存在请联系我们support@wisemapping.com。",
MAIN_TOPIC: '重点主题',
SUB_TOPIC: '子主题',
ISOLATED_TOPIC: '独立主题',
CENTRAL_TOPIC: '中心主题',
SHORTCUTS: '键盘快捷键',
ENTITIES_COULD_NOT_BE_DELETED: '无法删除主题或关系。至少选择一个脑图实体。',
AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED: '至少要选择一个主题',
CLIPBOARD_IS_EMPTY: '没有东西可以复制。剪贴板是空的。',
CENTRAL_TOPIC_CAN_NOT_BE_DELETED: '无法删除中心主题。',
RELATIONSHIP_COULD_NOT_BE_CREATED: '无法创建关系。必须先选择要建立关系的主题。',
SELECTION_COPIED_TO_CLIPBOARD: '主题已复制到剪贴板',
WRITE_YOUR_TEXT_HERE: '在这里写你的注释......',
REMOVE: '删除',
ACCEPT: '接受',
CANCEL: '取消',
LINK: '链接',
OPEN_LINK: '打开URL',
SESSION_EXPIRED: '您的会话已过期,请重新登录。',
URL_ERROR: 'URL无效',
ACTION: '操作',
CREATE_SIBLING_TOPIC: '创建并行主题',
CREATE_CHILD_TOPIC: '创建子主题',
DELETE_TOPIC: '删除主题',
EDIT_TOPIC_TEXT: '编辑主题文本',
JUST_START_TYPING: '开始打字',
CANCEL_TEXT_CHANGES: '取消文本更改',
TOPIC_NAVIGATION: '主题导航',
ARROW_KEYS: '方向按键',
SELECT_MULTIPLE_NODES: '选择多个节点',
UNDO_EDITION: '撤销编辑',
REDO_EDITION: '重做修改',
SELECT_ALL_TOPIC: '选择所有主题',
CHANGE_TEXT_BOLD: '更改粗体文本',
SAVE_CHANGES: '保存更改',
CHANGE_TEXT_ITALIC: '更改斜体文本',
DESELECT_ALL_TOPIC: '取消选择所有主题',
COLLAPSE_CHILDREN: '折叠子节点',
KEYBOARD_SHORTCUTS_MSG: '键盘快捷键可以让你永远不用把手从键盘上拿开来使用鼠标,从而帮助你节省时间。',
COPY_AND_PASTE_TOPICS: '复制和粘贴主题',
MULTIPLE_LINES: '添加多行文本',
BACK_TO_MAP_LIST: '回到脑图列表',
KEYBOARD_SHOTCUTS: '键盘快捷键',
};
export default ZH;

View File

@ -0,0 +1,504 @@
{
"account.delete-warning": {
"defaultMessage": "请记住,您将无法访问您添加的任何思维导图。您的所有信息都将被删除,并且无法恢复。"
},
"accountinfo.button": {
"defaultMessage": "接受"
},
"accountinfo.deleteaccount": {
"defaultMessage": "删除账号"
},
"accountinfo.email": {
"defaultMessage": "Email电子邮件"
},
"accountinfo.firstname": {
"defaultMessage": "名字"
},
"accountinfo.lastname": {
"defaultMessage": "姓氏"
},
"accountinfo.title": {
"defaultMessage": "账户信息"
},
"action.cancel-button": {
"defaultMessage": "取消"
},
"action.close-button": {
"defaultMessage": "关闭"
},
"action.delete": {
"defaultMessage": "删除"
},
"action.delete-description": {
"defaultMessage": "已删除的思维导图无法恢复。您想继续吗?"
},
"action.delete-title": {
"defaultMessage": "删除"
},
"action.duplicate": {
"defaultMessage": "复制"
},
"action.export": {
"defaultMessage": "导出"
},
"action.history": {
"defaultMessage": "历史"
},
"action.history-description": {
"defaultMessage": "过去90天内引入的更改列表。"
},
"action.history-title": {
"defaultMessage": "历史版本"
},
"action.import": {
"defaultMessage": "导入"
},
"action.info": {
"defaultMessage": "信息"
},
"action.label": {
"defaultMessage": "添加标签"
},
"action.new": {
"defaultMessage": "新建脑图"
},
"action.open": {
"defaultMessage": "打开"
},
"action.print": {
"defaultMessage": "打印"
},
"action.publish": {
"defaultMessage": "发布"
},
"action.rename": {
"defaultMessage": "重命名"
},
"action.rename-description-placeholder": {
"defaultMessage": "描述"
},
"action.rename-name-placeholder": {
"defaultMessage": "名称"
},
"action.share": {
"defaultMessage": "分享"
},
"changepwd.button": {
"defaultMessage": "更改"
},
"changepwd.confirm-password": {
"defaultMessage": "确认密码"
},
"changepwd.description": {
"defaultMessage": "请为您的账户提供新密码"
},
"changepwd.password": {
"defaultMessage": "密码"
},
"changepwd.password-match": {
"defaultMessage": "密码不一致,请再试一次"
},
"changepwd.title": {
"defaultMessage": "更改密码"
},
"common.wait": {
"defaultMessage": "请等待。。。"
},
"create.button": {
"defaultMessage": "创建"
},
"create.description": {
"defaultMessage": "请填写新的脑图名称和描述"
},
"create.title": {
"defaultMessage": "创建一个新的思维导图"
},
"deletem.title": {
"defaultMessage": "所有选中的脑图将被删除"
},
"duplicate.title": {
"defaultMessage": "复制"
},
"expired.description": {
"defaultMessage": "您的当前会话已过期。请登录后重试。"
},
"expired.title": {
"defaultMessage": "您的会话已过期"
},
"export.desc": {
"defaultMessage": "以您需要的格式导出此脑图,并在演示文稿中使用或通过电子邮件分享"
},
"export.document": {
"defaultMessage": "思维导图工具:以第三方思维导图格式导出您的思维导图"
},
"export.document-label": {
"defaultMessage": "文档:将你的思维导图导出到一个独立的文档中来分享"
},
"export.image": {
"defaultMessage": "Image: Get a graphic representation of your map including all colors and shapes.图像:以图片形式获取包含所有颜色和形状的脑图"
},
"export.img-center": {
"defaultMessage": "居中并缩放合适大小"
},
"export.title": {
"defaultMessage": "导出"
},
"export.warning": {
"defaultMessage": "导出到图像SVGPNGJPEGPDF仅在编辑器工具栏中可用。"
},
"footer.aboutus": {
"defaultMessage": "关于我们"
},
"footer.contactus": {
"defaultMessage": "联系我们"
},
"footer.faq": {
"defaultMessage": "常见问题"
},
"footer.faqandhelp": {
"defaultMessage": "帮助和常见问题"
},
"footer.feedback": {
"defaultMessage": "反馈"
},
"footer.opensource": {
"defaultMessage": "开源"
},
"footer.others": {
"defaultMessage": "其它"
},
"footer.termsandconditions": {
"defaultMessage": "条款和条件"
},
"forgot.desc": {
"defaultMessage": "我们将向您发送电子邮件以重置您的密码。"
},
"forgot.email": {
"defaultMessage": "电子邮件"
},
"forgot.page-title": {
"defaultMessage": "忘记密码|WiseMapping"
},
"forgot.register": {
"defaultMessage": "发送恢复链接"
},
"forgot.success.desc": {
"defaultMessage": "我们已经向您发送了一封电子邮件,允许您重置密码。您应该会在几分钟内收到"
},
"forgot.success.title": {
"defaultMessage": "您的临时密码已发送。"
},
"forgot.title": {
"defaultMessage": "重置密码"
},
"forgotsuccess.page-title": {
"defaultMessage": "密码已恢复|WiseMapping"
},
"header.donthaveaccount": {
"defaultMessage": "没有账号?"
},
"header.haveaccount": {
"defaultMessage": "已经有一个账号?"
},
"help.support": {
"defaultMessage": "支持"
},
"history.no-changes": {
"defaultMessage": "没有可用的更改"
},
"import.button": {
"defaultMessage": "创建"
},
"import.description": {
"defaultMessage": "您可以将WiseMapping脑图导入到您的脑图列表中。选择要导入的文件。"
},
"import.title": {
"defaultMessage": "导入现有的思维导图"
},
"info.basic-info": {
"defaultMessage": "基本信息"
},
"info.button": {
"defaultMessage": "接受"
},
"info.creation-time": {
"defaultMessage": "创建日期"
},
"info.creator": {
"defaultMessage": "创建人"
},
"info.description": {
"defaultMessage": "描述"
},
"info.description-msg": {
"defaultMessage": "通过发布脑图,你让互联网上的每个人都能看到它。"
},
"info.modified-time": {
"defaultMessage": "最后修改日期"
},
"info.modified-tny": {
"defaultMessage": "最后修改人"
},
"info.name": {
"defaultMessage": "名称"
},
"info.public-visibility": {
"defaultMessage": "公开可见"
},
"info.sharing": {
"defaultMessage": "分享"
},
"info.starred": {
"defaultMessage": "星标"
},
"info.title": {
"defaultMessage": "信息"
},
"label.add-button": {
"defaultMessage": "添加标签"
},
"label.add-for": {
"defaultMessage": "编辑脑图标签:"
},
"label.add-placeholder": {
"defaultMessage": "标签标题"
},
"label.change-color": {
"defaultMessage": "更改标签颜色"
},
"label.delete-description": {
"defaultMessage": "将被删除,包括它与所有现有脑图的关联。是否继续?"
},
"label.delete-title": {
"defaultMessage": "确认标签删除"
},
"label.description": {
"defaultMessage": "使用标签来组织你的脑图。"
},
"label.title": {
"defaultMessage": "添加标签"
},
"language.change": {
"defaultMessage": "更改语言"
},
"language.help": {
"defaultMessage": "帮助翻译"
},
"login.desc": {
"defaultMessage": "登录您的账号"
},
"login.email": {
"defaultMessage": "电子邮件"
},
"login.error": {
"defaultMessage": "您输入的电子邮件地址或密码无效。"
},
"login.forgotpwd": {
"defaultMessage": "忘记密码?"
},
"login.hsqldbcofig": {
"defaultMessage": "虽然HSQLDB在安装过程中默认与WiseMapping捆绑在一起但我们不建议将此数据库用于生产用途。请考虑使用MySQL 5.7代替。您可以找到更多关于如何配置MySQL的信息",
"description": "缺少已配置的生产数据库"
},
"login.page-title": {
"defaultMessage": "登录|WiseMapping"
},
"login.password": {
"defaultMessage": "密码"
},
"login.remberme": {
"defaultMessage": "记住我的登录"
},
"login.signin": {
"defaultMessage": "登录"
},
"login.signup": {
"defaultMessage": "注册"
},
"login.title": {
"defaultMessage": "欢迎"
},
"login.userinactive": {
"defaultMessage": "对不起,您的账号尚未激活。当它激活时,您将收到一封通知电子邮件。敬请关注!"
},
"map.creator": {
"defaultMessage": "创建人"
},
"map.delete-selected": {
"defaultMessage": "删除选中项"
},
"map.last-update": {
"defaultMessage": "最后更新"
},
"map.more-actions": {
"defaultMessage": "更多操作"
},
"map.name": {
"defaultMessage": "名称"
},
"map.tooltip-add": {
"defaultMessage": "将标签添加到选定项"
},
"maps.choose-file": {
"defaultMessage": "选择一个文件"
},
"maps.create-tooltip": {
"defaultMessage": "创建一个新的思维导图"
},
"maps.empty-result": {
"defaultMessage": "没有找到与当前筛选条件匹配的思维导图。"
},
"maps.import-desc": {
"defaultMessage": "从其它工具导入"
},
"maps.modified": {
"defaultMessage": "修改"
},
"maps.modified-by": {
"defaultMessage": "修改人"
},
"maps.modified-by-desc": {
"defaultMessage": "{on}由{by}修改"
},
"maps.nav-all": {
"defaultMessage": "所有"
},
"maps.nav-onwned": {
"defaultMessage": "拥有"
},
"maps.nav-public": {
"defaultMessage": "公共"
},
"maps.nav-shared": {
"defaultMessage": "与我分享"
},
"maps.nav-starred": {
"defaultMessage": "星标"
},
"maps.page-title": {
"defaultMessage": "我的脑图|WiseMapping"
},
"maps.revert": {
"defaultMessage": "恢复"
},
"maps.search-action": {
"defaultMessage": "搜索。。。"
},
"maps.tooltip-open": {
"defaultMessage": "打开编辑"
},
"maps.tooltip-starred": {
"defaultMessage": "星标"
},
"maps.view": {
"defaultMessage": "查看"
},
"menu.account": {
"defaultMessage": "账号"
},
"menu.change-password": {
"defaultMessage": "更改密码"
},
"menu.signout": {
"defaultMessage": "注销"
},
"publish.button": {
"defaultMessage": "接受"
},
"publish.checkbox": {
"defaultMessage": "开启公共分享"
},
"publish.description": {
"defaultMessage": "通过发布脑图,你让互联网上的每个人都能看到它。"
},
"publish.embedded": {
"defaultMessage": "嵌入"
},
"publish.embedded-msg": {
"defaultMessage": "复制这段代码以嵌入到您的博客或页面中:"
},
"publish.public-url": {
"defaultMessage": "公共UPL"
},
"publish.public-url-msg": {
"defaultMessage": "复制并粘贴下面的链接,与同事分享您的脑图:"
},
"publish.title": {
"defaultMessage": "发布"
},
"registation.success-title": {
"defaultMessage": "注册成功|WiseMapping"
},
"registration.desc": {
"defaultMessage": "Signing up is free and just take a moment注册免费分分钟就好"
},
"registration.email": {
"defaultMessage": "电子邮件"
},
"registration.firstname": {
"defaultMessage": "名字"
},
"registration.lastname": {
"defaultMessage": "姓氏"
},
"registration.page-title": {
"defaultMessage": "注册|WiseMapping"
},
"registration.password": {
"defaultMessage": "密码"
},
"registration.register": {
"defaultMessage": "注册"
},
"registration.success.desc": {
"defaultMessage": "点击下面的登录按钮,开始创建思维导图。"
},
"registration.termandconditions": {
"defaultMessage": "客户条款请检查您在上面输入的WiseMapping账号信息并在此处查看客户条款。点击下面的'注册'即表示您同意上面的客户条款和隐私政策"
},
"registration.title": {
"defaultMessage": "成为成员"
},
"rename.description": {
"defaultMessage": "请填写新的脑图名称和描述。"
},
"rename.title": {
"defaultMessage": "重命名"
},
"resetpassword.success.title": {
"defaultMessage": "您的账号已成功创建"
},
"role.editor": {
"defaultMessage": "编辑人"
},
"role.owner": {
"defaultMessage": "所有人"
},
"role.viewer": {
"defaultMessage": "查看人"
},
"share.add-button": {
"defaultMessage": "添加"
},
"share.add-message": {
"defaultMessage": "添加消息"
},
"share.can-edit": {
"defaultMessage": "可编辑"
},
"share.can-view": {
"defaultMessage": "可查看"
},
"share.delete": {
"defaultMessage": "删除协作人"
},
"share.delete-description": {
"defaultMessage": "邀请人们与你合作创建你的思维导图。他们将通过电子邮件得到通知。"
},
"share.delete-title": {
"defaultMessage": "与人分享"
},
"share.message": {
"defaultMessage": "消息"
}
}

View File

@ -47,7 +47,7 @@ export default abstract class AppI18n {
} }
} }
export type LocaleCode = 'en' | 'es' | 'fr' | 'de' | 'ru'; export type LocaleCode = 'en' | 'es' | 'fr' | 'de' | 'ru' | 'zh';
export const Locales = { export const Locales = {
EN: new Locale('en', 'English', require('./../../compiled-lang/en.json')), // eslint-disable-line EN: new Locale('en', 'English', require('./../../compiled-lang/en.json')), // eslint-disable-line
@ -55,10 +55,10 @@ export const Locales = {
DE: new Locale('fr', 'Français', require('./../../compiled-lang/fr.json')), // eslint-disable-line DE: new Locale('fr', 'Français', require('./../../compiled-lang/fr.json')), // eslint-disable-line
FR: new Locale('de', 'Deutsch', require('./../../compiled-lang/de.json')), // eslint-disable-line FR: new Locale('de', 'Deutsch', require('./../../compiled-lang/de.json')), // eslint-disable-line
RU: new Locale('ru', 'Pусский', require('./../../compiled-lang/ru.json')), // eslint-disable-line RU: new Locale('ru', 'Pусский', require('./../../compiled-lang/ru.json')), // eslint-disable-line
ZH: new Locale('zh', '中文', require('./../../compiled-lang/zh.json')), // eslint-disable-line
}; };
export const localeFromStr = (code: string): Locale => { export const localeFromStr = (code: string): Locale => {
const locales: Locale[] = Object.values(Locales); const locales: Locale[] = Object.values(Locales);

File diff suppressed because it is too large Load Diff