Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
Added French language support (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainpe authored Jul 19, 2020
1 parent 04779b0 commit 8d63629
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/component/intlContext/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import esES from '../../locale/es_ES';
import ruRU from '../../locale/ru_RU';
import msMY from '../../locale/ms_MY';
import zhTW from '../../locale/zh_TW';
import frFR from '../../locale/fr_FR';
import { getLang } from '../util';

export interface IntlType {
Expand Down Expand Up @@ -51,6 +52,7 @@ const esESIntl = createIntl('es_ES', esES);
const ruRUIntl = createIntl('ru_RU', ruRU);
const msMYIntl = createIntl('ms_MY', msMY);
const zhTWIntl = createIntl('zh_TW', zhTW);
const frFRIntl = createIntl('fr_FR', frFR);

const intlMap = {
'zh-CN': zhCNIntl,
Expand All @@ -62,6 +64,7 @@ const intlMap = {
'ru-RU': ruRUIntl,
'ms-MY': msMYIntl,
'zh-TW': zhTWIntl,
'fr-FR': frFRIntl,
};

export { enUSIntl, zhCNIntl, viVNIntl, itITIntl, jaJPIntl, esESIntl, ruRUIntl, msMYIntl, zhTWIntl };
Expand Down
43 changes: 43 additions & 0 deletions src/locale/fr_FR.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
export default {
moneySymbol: '€',
tableForm: {
search: 'Rechercher',
reset: 'Réinitialiser',
submit: 'Envoyer',
collapsed: 'Agrandir',
expand: 'Réduire',
inputPlaceholder: 'Entrer une valeur',
selectPlaceholder: 'Sélectionner une valeur',
},
alert: {
clear: 'Réinitialiser',
selected: 'Sélectionné',
item: 'Item',
},
pagination: {
total: {
range: ' ',
total: 'sur',
item: 'éléments',
},
},
tableToolBar: {
leftPin: 'Épingler à gauche',
rightPin: 'Épingler à gauche',
noPin: 'Sans épingle',
leftFixedTitle: 'Fixer à gauche',
rightFixedTitle: 'Fixer à droite',
noFixedTitle: 'Non fixé',
reset: 'Réinitialiser',
columnDisplay: 'Affichage colonne',
columnSetting: 'Réglages',
fullScreen: 'Plein écran',
exitFullScreen: 'Quitter Plein écran',
reload: 'Rafraichir',
density: 'Densité',
densityDefault: 'Par défaut',
densityLarger: 'Larger',
densityMiddle: 'Moyenne',
densitySmall: 'Compacte',
},
};

0 comments on commit 8d63629

Please sign in to comment.