-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into aggregation-footer-…
…is-auto-generated
- Loading branch information
Showing
6 changed files
with
89 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { PickersLocaleText } from './utils/pickersLocaleTextApi'; | ||
import { getPickersLocalization } from './utils/getPickersLocalization'; | ||
|
||
// maps ClockPickerView to its translation | ||
const timeViews = { | ||
hours: 'Hodiny', | ||
minutes: 'Minuty', | ||
seconds: 'Sekundy', | ||
}; | ||
|
||
// maps PickersToolbar["viewType"] to its translation | ||
const pickerViews = { | ||
calendar: 'kalendáře', | ||
clock: 'času', | ||
}; | ||
|
||
const csCZPickers: PickersLocaleText<any> = { | ||
// Calendar navigation | ||
previousMonth: 'Další měsíc', | ||
nextMonth: 'Předchozí month', | ||
|
||
// View navigation | ||
openPreviousView: 'otevřít předchozí zobrazení', | ||
openNextView: 'otevřít další zobrazení', | ||
calendarViewSwitchingButtonAriaLabel: (view) => | ||
view === 'year' | ||
? 'roční zobrazení otevřeno, přepněte do zobrazení kalendáře' | ||
: 'zobrazení kalendáře otevřeno, přepněte do zobrazení roku', | ||
inputModeToggleButtonAriaLabel: (isKeyboardInputOpen: boolean, viewType: 'calendar' | 'clock') => | ||
isKeyboardInputOpen | ||
? `Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${pickerViews[viewType]}` | ||
: `Zobrazení ${pickerViews[viewType]} je otevřené, přepněte do zobrazení textového pole`, | ||
|
||
// DateRange placeholders | ||
start: 'Začátek', | ||
end: 'Konec', | ||
|
||
// Action bar | ||
cancelButtonLabel: 'Zrušit', | ||
clearButtonLabel: 'Vymazat', | ||
okButtonLabel: 'Potvrdit', | ||
todayButtonLabel: 'Dnes', | ||
|
||
// Toolbar titles | ||
datePickerDefaultToolbarTitle: 'Vyberte datum', | ||
dateTimePickerDefaultToolbarTitle: 'Vyberte datum a čas', | ||
timePickerDefaultToolbarTitle: 'Vyberte čas', | ||
dateRangePickerDefaultToolbarTitle: 'Vyberete rozmezí dat', | ||
|
||
// Clock labels | ||
clockLabelText: (view, time, adapter) => | ||
`${timeViews[view] ?? view} vybrány. ${ | ||
time === null ? 'Není vybrán čas' : `Vybraný čas je ${adapter.format(time, 'fullTime')}` | ||
}`, | ||
hoursClockNumberText: (hours) => `${hours} hodin`, | ||
minutesClockNumberText: (minutes) => `${minutes} minut`, | ||
secondsClockNumberText: (seconds) => `${seconds} sekund`, | ||
|
||
// Open picker labels | ||
openDatePickerDialogue: (value, utils) => | ||
value !== null && utils.isValid(value) | ||
? `Vybrané datum, vybrané datum je ${utils.format(value, 'fullDate')}` | ||
: 'Vyberte datum', | ||
openTimePickerDialogue: (value, utils) => | ||
value !== null && utils.isValid(value) | ||
? `Vybrané čas, vybraný čas je ${utils.format(value, 'fullTime')}` | ||
: 'Vyberte čas', | ||
|
||
// Table labels | ||
timeTableLabel: 'vyberte čas', | ||
dateTableLabel: 'vyberte datum', | ||
}; | ||
|
||
export const csCZ = getPickersLocalization(csCZPickers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters