Skip to content

Commit

Permalink
Add French language (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
didibear authored and margox committed Sep 6, 2019
1 parent 2ca62f8 commit 1c1581e
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 6 deletions.
12 changes: 7 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import * as React from 'react';
import * as Immutable from 'immutable';
import {
EditorState as _EditorState,
Editor,
EditorProps as DraftEditorProps,
Editor, RawDraftContentState
} from 'draft-js';
EditorState as _EditorState,
RawDraftContentState,
} from 'draft-js'
import * as Immutable from 'immutable'
import * as React from 'react'

export type EditorState = _EditorState & {
[key: string]: any;
Expand Down Expand Up @@ -33,6 +34,7 @@ export interface BraftEditorProps {
| 'jpn'
| 'kr'
| 'pl'
| 'fr'
| ((languages: any, context: any) => any);
controls?: ControlType[];
excludeControls?: BuiltInControlType[];
Expand Down
75 changes: 75 additions & 0 deletions src/languages/fr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
export default {
base: {
remove: 'Supprimer',
cancel: 'Annuler',
confirm: 'Confirmer',
inert: 'Insérer',
width: 'Largeur',
height: 'Hauteur'
},
controls: {
clear: 'Effacer',
undo: 'Annuler',
redo: 'Refaire',
fontSize: 'Taille de police',
color: 'Couleur',
textColor: 'Texte',
tempColors: 'Couleurs temporaire',
backgroundColor: 'Couleur d\'arrière plan',
bold: 'Gras',
lineHeight:'Hauteur de ligne',
letterSpacing:'Espacement des lettres',
textIndent:'Indentation du texte',
increaseIndent: 'Augmenter l\'indentation',
decreaseIndent: 'Réduire l\'indentation',
italic: 'Italique',
underline: 'Souligner',
strikeThrough: 'Barrer',
fontFamily: 'Police d\'écriture',
textAlign: 'Alignement du texte',
alignLeft: 'Aligner à gauche',
alignCenter: 'Aligner au centre',
alignRight: 'Aligner à droite',
alignJustify: 'Justifier',
floatLeft: 'Déplacer à gauche',
floatRight: 'Déplacer à droite',
superScript: 'Super-script',
subScript: 'Sous-script',
removeStyles: 'Supprimer les styles',
headings: 'Titres',
header: 'Entêtes',
normal: 'Normal',
orderedList: 'Liste ordonnée',
unorderedList: 'Liste non-ordonnée',
blockQuote: 'Citation',
code: 'Code',
link: 'Insérer un lien',
unlink: 'Supprimer le lien',
hr: 'Ligne horizontale',
media: 'Média',
mediaLibirary: 'Bibliothêque',
emoji: 'Emoji',
fullscreen: 'Plein écran',
exitFullscreen: 'Quitter le plein écran',
},
linkEditor: {
textInputPlaceHolder: 'Insérer le texte à afficher',
linkInputPlaceHolder: 'Insérer le lien URL',
inputWithEnterPlaceHolder: 'Insérer le lien URL puis appuyer sur Entrée',
openInNewWindow: 'Ouvrir dans une nouvelle fenêtre',
removeLink: 'Supprimer le lien'
},
audioPlayer: {
title: 'Lancer le son audio'
},
videoPlayer: {
title: 'Lancer la video',
embedTitle: 'Intégrer média'
},
media: {
image: 'Image',
video: 'Vidéo',
audio: 'Audio',
embed: 'Intégré'
}
}
4 changes: 3 additions & 1 deletion src/languages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import kr from './kr'
import tr from './tr'
import jpn from './jpn'
import ru from './ru'
import fr from './fr'

export default {
'en': en,
Expand All @@ -15,5 +16,6 @@ export default {
'kr': kr,
'tr': tr,
'jpn': jpn,
'ru': ru
'ru': ru,
'fr': fr
}

0 comments on commit 1c1581e

Please sign in to comment.