Skip to content

Commit

Permalink
[core] Fix Pickers pl-PL translation after cherry-pick from master (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy authored Oct 30, 2024
1 parent ee2afcf commit 62605b9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/x-date-pickers/src/locales/plPL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ const plPLPickers: Partial<PickersLocaleText<any>> = {
calendarWeekNumberText: (weekNumber) => `${weekNumber}`,

// Open picker labels
openDatePickerDialogue: (formattedDate) =>
formattedDate ? `Wybierz datę, obecnie wybrana data to ${formattedDate}` : 'Wybierz datę',
openTimePickerDialogue: (formattedTime) =>
formattedTime ? `Wybierz czas, obecnie wybrany czas to ${formattedTime}` : 'Wybierz czas',
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: 'Wyczyść',

// Table labels
Expand Down

0 comments on commit 62605b9

Please sign in to comment.