Skip to content

Commit

Permalink
feat: add Spanish language (close #33)
Browse files Browse the repository at this point in the history
  • Loading branch information
elamperti authored and kyuwoo.choi committed Jan 29, 2018
1 parent a74ddee commit 6c67423
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -75,7 +75,7 @@ Depending on the type of use you want like production of *Markdown* or maybe to
* **Table**: Hate the Markdown table? You can do everything with a mouse

### And more
* **i18n**: English, Dutch, Korean, Japanese, Chinese + language you extend.
* **i18n**: English, Dutch, Korean, Japanese, Chinese, Spanish + language you extend.
* **Viewer**: Renders Markdown content with extensions


Expand Down
1 change: 1 addition & 0 deletions src/js/editor.js
Expand Up @@ -73,6 +73,7 @@ import './langs/ko_KR';
import './langs/zh_CN';
import './langs/ja_JP';
import './langs/nl_NL';
import './langs/es_ES';

const __nedInstance = [];

Expand Down
7 changes: 7 additions & 0 deletions src/js/extensions/table/langs.js
Expand Up @@ -20,6 +20,13 @@ if (i18n) {
'Cannot paste row merged cells into the table header': 'Cannot paste row merged cells into the table header.'
});

i18n.setLanguage(['es', 'es_ES'], {
'Merge cells': 'Combinar celdas',
'Unmerge cells': 'Separar celdas',
'Cannot change part of merged cell': 'No se puede cambiar parte de una celda combinada.',
'Cannot paste row merged cells into the table header': 'No se pueden pegar celdas combinadas en el encabezado de tabla.'
});

i18n.setLanguage(['ja', 'ja_JP'], {
'Merge cells': 'セルの結合',
'Unmerge cells': 'セルの結合を解除',
Expand Down
50 changes: 50 additions & 0 deletions src/js/langs/es_ES.js
@@ -0,0 +1,50 @@
/**
* @fileoverview I18N for Spanish
* @author Enrico Lamperti <oss@elamperti.com>
*/
import i18n from '../i18n';

i18n.setLanguage(['es', 'es_ES'], {
'Markdown': 'Markdown',
'WYSIWYG': 'WYSIWYG',
'Write': 'Escribir',
'Preview': 'Vista previa',
'Headings': 'Encabezados',
'Paragraph': 'Párrafo',
'Bold': 'Negrita',
'Italic': 'Itálica',
'Strike': 'Tachado',
'Code': 'Código',
'Line': 'Línea',
'Blockquote': 'Cita',
'Unordered list': 'Lista desordenada',
'Ordered list': 'Lista ordenada',
'Task': 'Tarea',
'Insert link': 'Insertar enlace',
'Insert CodeBlock': 'Insertar bloque de código',
'Insert table': 'Insertar tabla',
'Insert image': 'Insertar imagen',
'Heading': 'Encabezado',
'Image URL': 'URL de la imagen',
'Select image file': 'Seleccionar archivo de imagen',
'Description': 'Descripción',
'OK': 'Aceptar',
'Cancel': 'Cancelar',
'File': 'Archivo',
'URL': 'URL',
'Link text': 'Texto del enlace',
'Add row': 'Agregar fila',
'Add col': 'Agregar columna',
'Remove row': 'Eliminar fila',
'Remove col': 'Eliminar columna',
'Align left': 'Alinear a la izquierda',
'Align center': 'Centrar',
'Align right': 'Alinear a la derecha',
'Remove table': 'Eliminar tabla',
'Would you like to paste as table?': '¿Desea pegar como tabla?',
'Text color': 'Color del texto',
'Auto scroll enabled': 'Desplazamiento automático habilitado',
'Auto scroll disabled': 'Desplazamiento automático deshabilitado',
'Cannot paste values ​​other than a table in the cell selection state': 'Sólo se pueden pegar tablas en el modo de selección de celdas',
'Choose language': 'Elegir idioma'
});

0 comments on commit 6c67423

Please sign in to comment.