Skip to content

Commit

Permalink
[l10n] Improve French (fr-FR) locale (mui#12692)
Browse files Browse the repository at this point in the history
Signed-off-by: BEL KHYATE FAROUK <[email protected]>
Co-authored-by: alexandre <[email protected]>
  • Loading branch information
2 people authored and DungTiger committed Jul 23, 2024
1 parent f388a80 commit 59360c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/data/date-pickers/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"languageTag": "fr-FR",
"importName": "frFR",
"localeName": "French",
"missingKeysCount": 15,
"missingKeysCount": 0,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/frFR.ts"
},
Expand Down
30 changes: 15 additions & 15 deletions packages/x-date-pickers/src/locales/frFR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const frFRPickers: Partial<PickersLocaleText<any>> = {
// DateRange labels
start: 'Début',
end: 'Fin',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: 'Date de début',
startTime: 'Heure de début',
endDate: 'Date de fin',
endTime: 'Heure de fin',

// Action bar
cancelButtonLabel: 'Annuler',
Expand Down Expand Up @@ -67,7 +67,7 @@ const frFRPickers: Partial<PickersLocaleText<any>> = {
value !== null && utils.isValid(value)
? `Choisir l'heure, l'heure sélectionnée est ${utils.format(value, 'fullTime')}`
: "Choisir l'heure",
// fieldClearLabel: 'Clear value',
fieldClearLabel: 'Effacer la valeur',

// Table labels
timeTableLabel: "choix de l'heure",
Expand All @@ -77,24 +77,24 @@ const frFRPickers: Partial<PickersLocaleText<any>> = {
fieldYearPlaceholder: (params) => 'A'.repeat(params.digitAmount),
fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'MMMM' : 'MM'),
fieldDayPlaceholder: () => 'JJ',
// fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
fieldWeekDayPlaceholder: (params) => (params.contentType === 'letter' ? 'EEEE' : 'EE'),
fieldHoursPlaceholder: () => 'hh',
fieldMinutesPlaceholder: () => 'mm',
fieldSecondsPlaceholder: () => 'ss',
fieldMeridiemPlaceholder: () => 'aa',

// View names
// year: 'Year',
// month: 'Month',
// day: 'Day',
// weekDay: 'Week day',
// hours: 'Hours',
// minutes: 'Minutes',
// seconds: 'Seconds',
// meridiem: 'Meridiem',
year: 'Année',
month: 'Mois',
day: 'Jour',
weekDay: 'Jour de la semaine',
hours: 'Heures',
minutes: 'Minutes',
seconds: 'Secondes',
meridiem: 'Méridien',

// Common
// empty: 'Empty',
empty: 'Vider',
};

export const frFR = getPickersLocalization(frFRPickers);

0 comments on commit 59360c8

Please sign in to comment.