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

[l10n] Improve French (fr-FR) locale #12692

Merged
merged 2 commits into from
Apr 8, 2024
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
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);
Loading