Skip to content

Commit

Permalink
feat: add French language (ref #37 #49)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislas-m authored and kyuwoo.choi committed Jan 29, 2018
1 parent d731d73 commit 5bcfb62
Show file tree
Hide file tree
Showing 4 changed files with 60 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, Spanish, German, Russian + language you extend.
* **i18n**: English, Dutch, Korean, Japanese, Chinese, Spanish, German, Russian, French + language you extend.
* **Viewer**: Renders Markdown content with extensions


Expand Down
1 change: 1 addition & 0 deletions src/js/editor.js
Expand Up @@ -76,6 +76,7 @@ import './langs/nl_NL';
import './langs/es_ES';
import './langs/de_DE';
import './langs/ru_RU';
import './langs/fr_FR';

const __nedInstance = [];

Expand Down
7 changes: 7 additions & 0 deletions src/js/extensions/table/langs.js
Expand Up @@ -61,4 +61,11 @@ if (i18n) {
'Cannot change part of merged cell': 'Вы не можете изменять часть комбинированной ячейки.',
'Cannot paste row merged cells into the table header': 'Вы не можете вставлять объединенные ячейки в заголовок таблицы.'
});

i18n.setLanguage(['fr', 'fr_FR'], {
'Merge cells': 'Fusionner les cellules',
'Unmerge cells': 'Séparer les cellules',
'Cannot change part of merged cell': 'Impossible de modifier une partie de la cellule fusionnée.',
'Cannot paste row merged cells into the table header': 'Impossible de coller les cellules fusionnées dans l\'en-tête du tableau.'
});
}
51 changes: 51 additions & 0 deletions src/js/langs/fr_FR.js
@@ -0,0 +1,51 @@
/**
* @fileoverview I18N for French
* @author Stanislas Michalak <stanislas.michalak@gmail.com>
*/
import i18n from '../i18n';

i18n.setLanguage(['fr', 'fr_FR'], {
'Markdown': 'Markdown',
'WYSIWYG': 'WYSIWYG',
'Write': 'Écrire',
'Preview': 'Aperçu',
'Headings': 'En-têtes',
'Paragraph': 'Paragraphe',
'Bold': 'Gras',
'Italic': 'Italique',
'Strike': 'Barré',
'Code': 'Code en ligne',
'Line': 'Ligne',
'Blockquote': 'Citation',
'Unordered list': 'Liste non-ordonnée',
'Ordered list': 'Liste ordonnée',
'Task': 'Tâche',
'Insert link': 'Insérer un lien',
'Insert CodeBlock': 'Insérer un bloc de code',
'Insert table': 'Insérer un tableau',
'Insert image': 'Insérer une image',
'Heading': 'En-tête',
'Image URL': 'URL de l\'image',
'Select image file': 'Sélectionnez un fichier image',
'Description': 'Description',
'OK': 'OK',
'Cancel': 'Annuler',
'File': 'Fichier',
'URL': 'URL',
'Link text': 'Texte du lien',
'Add row': 'Ajouter une ligne',
'Add col': 'Ajouter une colonne',
'Remove row': 'Supprimer une ligne',
'Remove col': 'Supprimer une colonne',
'Align left': 'Aligner à gauche',
'Align center': 'Aligner au centre',
'Align right': 'Aligner à droite',
'Remove table': 'Supprimer le tableau',
'Would you like to paste as table?': 'Voulez-vous coller ce contenu en tant que tableau ?',
'Text color': 'Couleur du texte',
'Auto scroll enabled': 'Défilement automatique activé',
'Auto scroll disabled': 'Défilement automatique désactivé',
'Cannot paste values ​​other than a table in the cell selection state':
'Impossible de coller autre chose qu\'un tableau dans la sélection de la cellule.',
'Choose language': 'Choix de la langue'
});

0 comments on commit 5bcfb62

Please sign in to comment.