Skip to content

Commit

Permalink
[l10n] Improve Polish (plPL) locale (@wojtkolos) (#15177)
Browse files Browse the repository at this point in the history
Co-authored-by: Wojciech Witczak <70755745+wojtkolos@users.noreply.github.com>
Co-authored-by: Andrew Cherniavskyi <andrew@mui.com>
  • Loading branch information
3 people authored Oct 29, 2024
1 parent a98a7b1 commit ee2afcf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 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 @@ -203,7 +203,7 @@
"languageTag": "pl-PL",
"importName": "plPL",
"localeName": "Polish",
"missingKeysCount": 22,
"missingKeysCount": 10,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/v7.x/packages/x-date-pickers/src/locales/plPL.ts"
},
Expand Down
36 changes: 16 additions & 20 deletions packages/x-date-pickers/src/locales/plPL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const plPLPickers: Partial<PickersLocaleText<any>> = {
// DateRange labels
start: 'Początek',
end: 'Koniec',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: 'Data rozpoczęcia',
startTime: 'Czas rozpoczęcia',
endDate: 'Data zakończenia',
endTime: 'Czas zakończenia',

// Action bar
cancelButtonLabel: 'Anuluj',
Expand Down Expand Up @@ -59,15 +59,11 @@ const plPLPickers: Partial<PickersLocaleText<any>> = {
calendarWeekNumberText: (weekNumber) => `${weekNumber}`,

// Open picker labels
openDatePickerDialogue: (value, utils, formattedDate) =>
value != null && utils.isValid(value)
? `Wybierz datę, obecnie wybrana data to ${formattedDate ?? utils.format(value, 'fullDate')}`
: 'Wybierz datę',
openTimePickerDialogue: (value, utils, formattedTime) =>
formattedTime || (value !== null && utils.isValid(value))
? `Wybierz czas, obecnie wybrany czas to ${formattedTime ?? utils.format(value, 'fullTime')}`
: 'Wybierz czas',
// fieldClearLabel: 'Clear',
openDatePickerDialogue: (formattedDate) =>
formattedDate ? `Wybierz datę, obecnie wybrana data to ${formattedDate}` : 'Wybierz datę',
openTimePickerDialogue: (formattedTime) =>
formattedTime ? `Wybierz czas, obecnie wybrany czas to ${formattedTime}` : 'Wybierz czas',
fieldClearLabel: 'Wyczyść',

// Table labels
timeTableLabel: 'wybierz czas',
Expand All @@ -84,13 +80,13 @@ const plPLPickers: Partial<PickersLocaleText<any>> = {
// fieldMeridiemPlaceholder: () => 'aa',

// View names
// year: 'Year',
// month: 'Month',
// day: 'Day',
// weekDay: 'Week day',
// hours: 'Hours',
// minutes: 'Minutes',
// seconds: 'Seconds',
year: 'Rok',
month: 'Miesiąc',
day: 'Dzień',
weekDay: 'Dzień tygodnia',
hours: 'Godzin',
minutes: 'Minut',
seconds: 'Sekund',
// meridiem: 'Meridiem',

// Common
Expand Down

0 comments on commit ee2afcf

Please sign in to comment.