Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add French language #593

Merged
merged 1 commit into from
Sep 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}