Fix i18n message loading.

This commit is contained in:
Paulo Gustavo Veiga 2021-12-17 21:29:28 -08:00
parent 1d2be6a70c
commit 9b5ed73ae3
10 changed files with 501 additions and 4 deletions

View File

@ -16,23 +16,23 @@
* limitations under the License.
*/
import { $defined } from '@wisemapping/core-js';
import Bundle from './lang/Bundle';
class Messages {
static init(locale) {
let userLocale = $defined(locale) ? locale : 'en';
let bundle = Messages.BUNDLES[locale];
let bundle = Bundle[locale];
if (bundle == null && locale.indexOf('_') !== -1) {
// Try to locate without the specialization ...
userLocale = locale.substring(0, locale.indexOf('_'));
bundle = Messages.BUNDLES[locale];
bundle = Bundle[locale];
}
global.locale = userLocale;
Messages.__bundle = bundle || {};
}
}
// @Todo: fix global assignment.
const $msg = function $msg(key) {
if (!Messages.__bundle) {
Messages.init('en');
@ -41,6 +41,5 @@ const $msg = function $msg(key) {
return msg || key;
};
Messages.BUNDLES = {};
export default Messages;
export { $msg };

View File

@ -0,0 +1,38 @@
/*
* Copyright [2015] [wisemapping]
*
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
* It is basically the Apache License, Version 2.0 (the "License") plus the
* "powered by wisemapping" text requirement on every single page;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the license at
*
* http://www.wisemapping.org/license
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import CA from './ca';
import ES from './es';
import EN from './en';
import DE from './de';
import FR from './fr';
import PT_BR from './pt_BR';
import ZH_CN from './zh_CN';
import ZH_TW from './zh_TW';
const Bundle = {
ca: CA,
es: ES,
en: EN,
de: DE,
fe: FR,
pt_BR: PT_BR,
zh_CN: ZH_CN,
zh_TW: ZH_TW,
};
export default Bundle;

View File

@ -0,0 +1,61 @@
const CA = {
DISCARD_CHANGES: 'Descartar els canvis',
SAVE: 'Desar',
INSERT: 'Inserir',
ZOOM_IN: 'Apropar',
ZOOM_OUT: 'Allunyar',
TOPIC_BORDER_COLOR: 'Color del bord',
TOPIC_SHAPE: 'Forma del Tòpic',
TOPIC_ADD: 'Afegir Tòpic',
TOPIC_DELETE: 'Esborrar Tòpic',
TOPIC_ICON: 'Afegir Icona',
TOPIC_LINK: 'Afegir Enllaç',
TOPIC_NOTE: 'Afegir Nota',
TOPIC_COLOR: 'Color del Tòpic',
TOPIC_RELATIONSHIP: 'Relació',
FONT_FAMILY: 'Tipus de font',
FONT_SIZE: 'Mida del text',
FONT_BOLD: 'Negreta',
FONT_ITALIC: 'Itàlica',
FONT_COLOR: 'Color del Text',
UNDO: 'Refer',
NOTE: 'Nota',
LOADING: 'Carregant ...',
PRINT: 'Imprimir',
PUBLISH: 'Publicar',
REDO: 'Desfer',
ADD_TOPIC: 'Afegir Tòpic',
COLLABORATE: 'Compartir',
EXPORT: 'Exportar',
HISTORY: 'Història',
SAVE_COMPLETE: 'Desat completat',
SAVING: 'Gravant ...',
ONE_TOPIC_MUST_BE_SELECTED: 'No ha estat possible crear un nou tòpic. Com a mínim ha de seleccionar un tòpic.',
ONLY_ONE_TOPIC_MUST_BE_SELECTED: "No ha estar possible crear un nou tòpic. Només un tòpic ha d'estar seleccionat.",
SAVE_COULD_NOT_BE_COMPLETED: "No s'ha pogut desar. Provi més tard.",
UNEXPECTED_ERROR_LOADING: "Ho sentim, un error ha esdevingut inesperadament. Provi recarregant l'editor, si el problema continua contacti a support@wisemapping.com.",
ZOOM_ERROR: 'No es pot fer més zoom.',
ZOOM_IN_ERROR: 'El zoom és massa creixent.',
MAIN_TOPIC: 'Tòpic principal',
SUB_TOPIC: 'Tòpic secundari',
ISOLATED_TOPIC: 'Tòpic aïllat',
CENTRAL_TOPIC: 'Tòpic central',
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE: "Els tòpics fills no es poden col·lapsar. Només un tòpic ha d'estar seleccionat.",
SHORTCUTS: 'Accessos directes',
ENTITIES_COULD_NOT_BE_DELETED: 'El tòpic o la relució no poden ser esborrats. Com a mínim ha de seleccionar un.',
AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED: 'Com a mínim ha de seleccionar un tòpic.',
CLIPBOARD_IS_EMPTY: 'Res a copiar.',
CENTRAL_TOPIC_CAN_NOT_BE_DELETED: 'El tòpic central no pot esborrar-se.',
RELATIONSHIP_COULD_NOT_BE_CREATED: "La relució no s'ha pout drear. Primer has de seleccionar una relució pare.",
SELECTION_COPIED_TO_CLIPBOARD: 'Tòpics copiats',
WRITE_YOUR_TEXT_HERE: 'Escriu aquí la teva nota ...',
REMOVE: 'Esborrar',
ACCEPT: 'Acceptar',
CANCEL: 'Cancel·lar',
LINK: 'Enllaç',
OPEN_LINK: 'Obrir Enllaç',
SESSION_EXPIRED: 'La seva sessió ha finalitzat. Si us plau, torni a connectar-se.',
DUMMY: '',
};
export default CA;

View File

@ -0,0 +1,60 @@
const DE = {
ZOOM_IN: 'Ansicht vergrößern',
ZOOM_OUT: 'Ansicht verkleinern',
TOPIC_SHAPE: 'Themen Gestaltung',
TOPIC_ADD: 'Thema hinzufügen',
TOPIC_DELETE: 'Thema löschen',
TOPIC_ICON: 'Symbol hinzufügen',
TOPIC_LINK: 'Verbindung hinzufügen',
TOPIC_RELATIONSHIP: 'Beziehung',
TOPIC_COLOR: 'Themenfarbe',
TOPIC_BORDER_COLOR: 'Thema Randfarbe',
TOPIC_NOTE: 'Notiz hinzufügen',
FONT_FAMILY: 'Schrifttyp',
FONT_SIZE: 'Schriftgröße',
FONT_BOLD: 'Fette Schrift',
FONT_ITALIC: 'Kursive Schrift',
UNDO: 'Rückgängig machen',
REDO: 'Wiederholen',
INSERT: 'Einfügen',
SAVE: 'Sichern',
NOTE: 'Notiz',
ADD_TOPIC: 'Thema hinzufügen',
LOADING: 'Laden ...',
EXPORT: 'Exportieren',
PRINT: 'Drucken',
PUBLISH: 'Publizieren',
COLLABORATE: 'Mitbenutzen',
HISTORY: 'Historie',
DISCARD_CHANGES: 'Änderungen verwerfen',
FONT_COLOR: 'Textfarbe',
SAVING: 'Sichern ...',
SAVE_COMPLETE: 'Sichern abgeschlossen',
ZOOM_IN_ERROR: 'Zoom zu hoch.',
ZOOM_ERROR: 'Es kann nicht weiter vergrößert bzw. verkelinert werden.',
ONLY_ONE_TOPIC_MUST_BE_SELECTED: 'Thema konnte nicht angelegt werden. Bitte wählen Sie nur ein Thema aus.',
ONE_TOPIC_MUST_BE_SELECTED: 'Thema konnte nicht angelegt werden. Es muss ein Thema ausgewählt werden.',
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE: 'Kinderknoten können nicht eingefaltet werden. Es muss ein Thema ausgewäht werden.',
SAVE_COULD_NOT_BE_COMPLETED: 'Sichern wurde nicht abgeschlossen. Versuchen Sie es später nocheinmal.',
UNEXPECTED_ERROR_LOADING: 'E tut uns Leid, ein unerwarteter Fehler ist aufgetreten.\nVersuchen Sie, den Editor neu zu laden. Falls das Problem erneut auftritt, bitte kontaktieren Sie uns unter support@wisemapping.com.',
MAIN_TOPIC: 'Hauptthema',
SUB_TOPIC: 'Unterthema',
ISOLATED_TOPIC: 'Isoliertes Thema',
CENTRAL_TOPIC: 'Zentrales Thema',
SHORTCUTS: 'Tastaturkürzel',
ENTITIES_COULD_NOT_BE_DELETED: 'Konnte das Thema oder die Beziehung nicht löschen. Es muss mindest ein Eintrag ausgewählt sein.',
AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED: 'Es muss mindestens ein Thema ausgewählt sein.',
CLIPBOARD_IS_EMPTY: 'Es gibt nichts zu kopieren. Die Zwischenablage ist leer.',
CENTRAL_TOPIC_CAN_NOT_BE_DELETED: 'Das zentrale Thema kann nicht gelöscht werden.',
RELATIONSHIP_COULD_NOT_BE_CREATED: 'Die Beziehung konnte nicht angelegt werden. Es muss erst ein Vater-Thema ausgewählt werden, um die Beziehung herzustellen.',
SELECTION_COPIED_TO_CLIPBOARD: 'Themen in der Zwischenablage',
WRITE_YOUR_TEXT_HERE: 'Schreiben Sie ihre Notiz hier ...',
REMOVE: 'Entfernen',
ACCEPT: 'Akzeptieren',
CANCEL: 'Abbrechen',
LINK: 'Verbindung',
OPEN_LINK: 'Öffne URL',
DUMMY: '',
};
export default DE;

View File

@ -0,0 +1,62 @@
const EN = {
ZOOM_IN: 'Zoom In',
ZOOM_OUT: 'Zoom Out',
TOPIC_SHAPE: 'Topic Shape',
TOPIC_ADD: 'Add Topic',
TOPIC_DELETE: 'Delete Topic',
TOPIC_ICON: 'Add Icon',
TOPIC_LINK: 'Add Link',
TOPIC_RELATIONSHIP: 'Relationship',
TOPIC_COLOR: 'Topic Color',
TOPIC_BORDER_COLOR: 'Topic Border Color',
TOPIC_NOTE: 'Add Note',
FONT_FAMILY: 'Font Type',
FONT_SIZE: 'Text Size',
FONT_BOLD: 'Text Bold',
FONT_ITALIC: 'Text Italic',
UNDO: 'Undo',
REDO: 'Redo',
INSERT: 'Insert',
SAVE: 'Save',
NOTE: 'Note',
ADD_TOPIC: 'Add Topic',
LOADING: 'Loading ...',
EXPORT: 'Export',
PRINT: 'Print',
PUBLISH: 'Publish',
COLLABORATE: 'Share',
HISTORY: 'History',
DISCARD_CHANGES: 'Discard Changes',
FONT_COLOR: 'Text Color',
SAVING: 'Saving ...',
SAVE_COMPLETE: 'Save Complete',
ZOOM_IN_ERROR: 'Zoom too high.',
ZOOM_ERROR: 'No more zoom can be applied.',
ONLY_ONE_TOPIC_MUST_BE_SELECTED: 'Could not create a topic. Only one topic must be selected.',
ONE_TOPIC_MUST_BE_SELECTED: 'Could not create a topic. One topic must be selected.',
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE: 'Children can not be collapsed. One topic must be selected.',
SAVE_COULD_NOT_BE_COMPLETED: 'Save could not be completed, please try again latter.',
UNEXPECTED_ERROR_LOADING: "We're sorry, an unexpected error has occurred.\nTry again reloading the editor.If the problem persists, contact us to support@wisemapping.com.",
MAIN_TOPIC: 'Main Topic',
SUB_TOPIC: 'Sub Topic',
ISOLATED_TOPIC: 'Isolated Topic',
CENTRAL_TOPIC: 'Central Topic',
SHORTCUTS: 'Keyboard Shortcuts',
ENTITIES_COULD_NOT_BE_DELETED: 'Could not delete topic or relation. At least one map entity must be selected.',
AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED: 'At least one topic must be selected.',
CLIPBOARD_IS_EMPTY: 'Nothing to copy. Clipboard is empty.',
CENTRAL_TOPIC_CAN_NOT_BE_DELETED: 'Central topic can not be deleted.',
RELATIONSHIP_COULD_NOT_BE_CREATED: 'Relationship could not be created. A parent relationship topic must be selected first.',
SELECTION_COPIED_TO_CLIPBOARD: 'Topics copied to the clipboard',
WRITE_YOUR_TEXT_HERE: 'Write your note here ...',
REMOVE: 'Remove',
ACCEPT: 'Accept',
CANCEL: 'Cancel',
LINK: 'Link',
OPEN_LINK: 'Open URL',
SESSION_EXPIRED: 'Your session has expired, please log-in again.',
URL_ERROR: 'URL not valid',
DUMMY: '',
};
export default EN;

View File

@ -0,0 +1,60 @@
const ES = {
DISCARD_CHANGES: 'Descartar Cambios',
SAVE: 'Guardar',
INSERT: 'Insertar',
ZOOM_IN: 'Acercar',
ZOOM_OUT: 'Alejar',
TOPIC_BORDER_COLOR: 'Color del Borde',
TOPIC_SHAPE: 'Forma del Tópico',
TOPIC_ADD: 'Agregar Tópico',
TOPIC_DELETE: 'Borrar Tópico',
TOPIC_ICON: 'Agregar Icono',
TOPIC_LINK: 'Agregar Enlace',
TOPIC_NOTE: 'Agregar Nota',
TOPIC_COLOR: 'Color Tópico',
TOPIC_RELATIONSHIP: 'Relación',
FONT_FAMILY: 'Tipo de Fuente',
FONT_SIZE: 'Tamaño de Texto',
FONT_BOLD: 'Negrita',
FONT_ITALIC: 'Italica',
FONT_COLOR: 'Color de Texto',
UNDO: 'Rehacer',
NOTE: 'Nota',
LOADING: 'Cargando ...',
PRINT: 'Imprimir',
PUBLISH: 'Publicar',
REDO: 'Deshacer',
ADD_TOPIC: 'Agregar Tópico',
COLLABORATE: 'Compartir',
EXPORT: 'Exportar',
HISTORY: 'Historial',
SAVE_COMPLETE: 'Grabado Completo',
SAVING: 'Grabando ...',
ONE_TOPIC_MUST_BE_SELECTED: 'No ha sido posible crear un nuevo tópico. Al menos un tópico debe ser seleccionado.',
ONLY_ONE_TOPIC_MUST_BE_SELECTED: 'No ha sido posible crear un nuevo tópico. Sólo un tópico debe ser seleccionado.',
SAVE_COULD_NOT_BE_COMPLETED: 'Grabación no pudo ser completada. Intentelo mas tarde.',
UNEXPECTED_ERROR_LOADING: 'Lo sentimos, un error inesperado ha ocurrido. Intentelo nuevamente recargando el editor. Si el problema persiste, contactenos a support@wisemapping.com.',
ZOOM_ERROR: 'No es posible aplicar mas zoom.',
ZOOM_IN_ERROR: 'El zoom es muy alto.',
MAIN_TOPIC: 'Tópico Principal',
SUB_TOPIC: 'Tópico Secundario',
ISOLATED_TOPIC: 'Tópico Aislado',
CENTRAL_TOPIC: 'Tópico Central',
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE: 'Tópicos hijos no pueden ser colapsados. Sólo un tópico debe ser seleccionado.',
SHORTCUTS: 'Accesos directos',
ENTITIES_COULD_NOT_BE_DELETED: 'El tópico o la relación no pudo ser borrada. Debe selecionar al menos una.',
AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED: 'Al menos un tópico debe ser seleccionado.',
CLIPBOARD_IS_EMPTY: 'Nada que copiar. Clipboard está vacio.',
CENTRAL_TOPIC_CAN_NOT_BE_DELETED: 'El tópico central no puede ser borrado.',
RELATIONSHIP_COULD_NOT_BE_CREATED: 'La relación no pudo ser creada. Una relación padre debe ser seleccionada primero.',
SELECTION_COPIED_TO_CLIPBOARD: 'Tópicos copiados al clipboard',
WRITE_YOUR_TEXT_HERE: 'Escribe tu nota aquí ...',
REMOVE: 'Borrar',
ACCEPT: 'Aceptar',
CANCEL: 'Cancelar',
LINK: 'Enlace',
OPEN_LINK: 'Abrir Enlace',
SESSION_EXPIRED: 'Su session ha expirado. Por favor, ingrese nuevamente.',
};
export default ES;

View File

@ -0,0 +1,58 @@
const FR = {
ZOOM_IN: 'Agrandir affichage',
ZOOM_OUT: 'Réduire affichage',
TOPIC_SHAPE: 'Forme du noeud',
TOPIC_ADD: 'Ajouter un noeud',
TOPIC_DELETE: 'Supprimer le noeud',
TOPIC_ICON: 'Ajouter une icône',
TOPIC_LINK: 'Ajouter un lien',
TOPIC_RELATIONSHIP: 'Relation du noeud',
TOPIC_COLOR: 'Couleur du noeud',
TOPIC_BORDER_COLOR: 'Couleur de bordure du noeud',
TOPIC_NOTE: 'Ajouter une note',
FONT_FAMILY: 'Type de police',
FONT_SIZE: 'Taille de police',
FONT_BOLD: 'Caractères gras',
FONT_ITALIC: 'Caractères italiques',
UNDO: 'Annuler',
REDO: 'Refaire',
INSERT: 'Insérer',
SAVE: 'Enregistrer',
NOTE: 'Note',
ADD_TOPIC: 'Ajouter un noeud',
LOADING: 'Chargement ...',
EXPORT: 'Exporter',
PRINT: 'Imprimer',
PUBLISH: 'Publier',
COLLABORATE: 'Partager',
HISTORY: 'Historique',
DISCARD_CHANGES: 'Annuler les changements',
FONT_COLOR: 'Couleur de police',
SAVING: 'Enregistrement ...',
SAVE_COMPLETE: 'Enregistrement terminé',
ZOOM_IN_ERROR: 'Zoom trop grand.',
ZOOM_ERROR: 'Impossible de zoomer plus.',
ONLY_ONE_TOPIC_MUST_BE_SELECTED: 'Impossible de créer un noeud. Un seul noeud doit être sélectionné.',
ONE_TOPIC_MUST_BE_SELECTED: 'Impossible de créer un noeud. Un noeud parent doit être sélectionné au préalable.',
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE: 'Un noeud enfant ne peut pas être réduit. Un noeud doit être sélectionné.',
SAVE_COULD_NOT_BE_COMPLETED: 'Enregistrement impossible. Essayer ultérieurement.',
UNEXPECTED_ERROR_LOADING: "Nous sommes désolés, une erreur vient de survenir.\nEssayez de recharger l'éditeur. Si le problème persiste, contactez-nous : support@wisemapping.com.",
MAIN_TOPIC: 'Noeud titre principal',
SUB_TOPIC: 'Noeud sous-titre',
ISOLATED_TOPIC: 'Noeud isolé',
CENTRAL_TOPIC: 'Noeud racine',
SHORTCUTS: 'Raccourcis clavier',
ENTITIES_COULD_NOT_BE_DELETED: "Impossible d'effacer un noeud ou une relation. Au moins un objet de la carte doit être sélectionné.",
AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED: 'Au moins un objet de la carte doit être sélectionné.',
CLIPBOARD_IS_EMPTY: 'Rien à copier. Presse-papier vide.',
CENTRAL_TOPIC_CAN_NOT_BE_DELETED: 'Le noeud racine ne peut pas être effacé.',
RELATIONSHIP_COULD_NOT_BE_CREATED: 'Impossible de créer relation. Un noeud parent doit être sélectionné au préalable.',
SELECTION_COPIED_TO_CLIPBOARD: 'Noeuds sélectionnés copiés dans le presse-papiers.',
ACCEPT: 'Accepter',
CANCEL: 'Annuler',
REMOVE: 'Supprimer',
WRITE_YOUR_TEXT_HERE: 'Écrivez votre texte ici ...',
LINK: 'Lien',
};
export default FR;

View File

@ -0,0 +1,53 @@
const PT_BR = {
ZOOM_IN: 'Ampliar',
ZOOM_OUT: 'Reduzir',
TOPIC_SHAPE: 'Forma do T\u00f3pico',
TOPIC_ADD: 'Adicionar T\u00f3pico',
TOPIC_DELETE: 'Deletar T\u00f3pico',
TOPIC_ICON: 'Adicionar \u00cdcone',
TOPIC_LINK: 'Adicionar Link',
TOPIC_RELATIONSHIP: 'Relacionamento',
TOPIC_COLOR: 'Cor do T\u00f3pico',
TOPIC_BORDER_COLOR: 'Cor da Borda do T\u00f3pico',
TOPIC_NOTE: 'Adicionar Nota',
FONT_FAMILY: 'Tipo de Fonte',
FONT_SIZE: 'Tamanho da Fonte',
FONT_BOLD: 'Fonte Negrito',
FONT_ITALIC: 'Fonte It\u00e1lico',
UNDO: 'Desfazer',
REDO: 'Refazer',
INSERT: 'Inserir',
SAVE: 'Salvar',
NOTE: 'Nota',
ADD_TOPIC: 'Adicionar T\u00f3pico',
LOADING: 'Carregando ...',
EXPORT: 'Exportar',
PRINT: 'Imprimir',
PUBLISH: 'Publicar',
COLLABORATE: 'Colaborar',
HISTORY: 'Hist\u00f3ria',
DISCARD_CHANGES: 'Descartar Altera\u00e7\u00f5es',
FONT_COLOR: 'Cor da Fonte',
SAVING: 'Salvando ...',
SAVE_COMPLETE: 'Salvamento Completo',
ZOOM_IN_ERROR: 'Zoom excessivo.',
ZOOM_ERROR: 'N\u00e3o \u00e9 poss\u00edvel aplicar mais zoom.',
ONLY_ONE_TOPIC_MUST_BE_SELECTED: 'N\u00e3o foi poss\u00edvel criar t\u00f3pico. Apenas um t\u00f3pico deve ser selecionado.',
ONE_TOPIC_MUST_BE_SELECTED: 'N\u00e3o foi poss\u00edvel criar t\u00f3pico. Um t\u00f3pico deve ser selecionado.',
SAVE_COULD_NOT_BE_COMPLETED: 'Salvamento n\u00e3o pode ser completado. Tente novamente mais tarde.',
UNEXPECTED_ERROR_LOADING: 'Ocorreu um erro inesperado.\nTente recarregar novamente o editor. Se o problema persistir, contacte-nos em support@wisemapping.com.',
MAIN_TOPIC: 'T\u00f3pico Principal',
SUB_TOPIC: 'Sub T\u00f3pico',
ISOLATED_TOPIC: 'T\u00f3pico Isolado',
CENTRAL_TOPIC: 'T\u00f3pico Central',
SHORTCUTS: 'Atalho',
ENTITIES_COULD_NOT_BE_DELETED: 'O tópico ou a relação não pode ser apagado. Seleccionar pelo menos um.',
AT_LEAST_ONE_TOPIC_MUST_BE_SELECTED: 'Pelo menos um tópico deve ser selecionado',
CLIPBOARD_IS_EMPTY: 'Nada para copiar. Clipboard está vazio.',
CENTRAL_TOPIC_CAN_NOT_BE_DELETED: 'O tópico central não pode ser apagado.',
RELATIONSHIP_COULD_NOT_BE_CREATED: 'A relação não pode ser criada. Uma relação pai deve ser selecionada primeiro.',
SELECTION_COPIED_TO_CLIPBOARD: 'Tópicos copiados ao clipboard.',
ONLY_ONE_TOPIC_MUST_BE_SELECTED_COLLAPSE: 'Tópicos filhos não podem ser colapsados. Só um tópico deve ser selecionado.',
};
export default PT_BR;

View File

@ -0,0 +1,53 @@
const ZH_CN = {
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: '节点已拷贝到粘贴板。',
};
export default ZH_CN;

View File

@ -0,0 +1,53 @@
const ZH_TW = {
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: '節點已拷貝到粘貼板。',
};
export default ZH_TW;