Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[l10n] Add Kazakh (kz-KZ) locale (#8451)
Co-authored-by: alexandre <alex.fauquette@gmail.com>
- Loading branch information
1 parent
39d105c
commit 6fe709b
Showing
5 changed files
with
92 additions
and
1 deletion.
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
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,80 @@ | ||
import { PickersLocaleText } from './utils/pickersLocaleTextApi'; | ||
import { getPickersLocalization } from './utils/getPickersLocalization'; | ||
|
||
// Translation map for Clock Label | ||
const timeViews = { | ||
hours: 'Сағатты', | ||
minutes: 'Минутты', | ||
seconds: 'Секундты', | ||
}; | ||
|
||
const kzKZPickers: Partial<PickersLocaleText<any>> = { | ||
// Calendar navigation | ||
previousMonth: 'Алдыңғы ай', | ||
nextMonth: 'Келесі ай', | ||
|
||
// View navigation | ||
openPreviousView: 'Алдыңғы көріністі ашу', | ||
openNextView: 'Келесі көріністі ашу', | ||
calendarViewSwitchingButtonAriaLabel: (view) => | ||
view === 'year' | ||
? 'жылдық көріністі ашу, күнтізбе көрінісіне ауысу' | ||
: 'күнтізбе көрінісін ашу, жылдық көрінісіне ауысу', | ||
|
||
// DateRange placeholders | ||
start: 'Бастау', | ||
end: 'Cоңы', | ||
|
||
// Action bar | ||
cancelButtonLabel: 'Бас тарту', | ||
clearButtonLabel: 'Тазарту', | ||
okButtonLabel: 'Ок', | ||
todayButtonLabel: 'Бүгін', | ||
|
||
// Toolbar titles | ||
datePickerToolbarTitle: 'Күнді таңдау', | ||
dateTimePickerToolbarTitle: 'Күн мен уақытты таңдау', | ||
timePickerToolbarTitle: 'Уақытты таңдау', | ||
dateRangePickerToolbarTitle: 'Кезеңді таңдаңыз', | ||
|
||
// Clock labels | ||
clockLabelText: (view, time, adapter) => | ||
`${timeViews[view]} таңдау. ${ | ||
time === null ? 'Уақыт таңдалмаған' : `Таңдалған уақыт ${adapter.format(time, 'fullTime')}` | ||
}`, | ||
hoursClockNumberText: (hours) => `${hours} сағат`, | ||
minutesClockNumberText: (minutes) => `${minutes} минут`, | ||
secondsClockNumberText: (seconds) => `${seconds} секунд`, | ||
|
||
// Calendar labels | ||
calendarWeekNumberHeaderLabel: 'Апта нөмірі', | ||
calendarWeekNumberHeaderText: '№', | ||
calendarWeekNumberAriaLabelText: (weekNumber) => `Апта ${weekNumber}`, | ||
calendarWeekNumberText: (weekNumber) => `${weekNumber}`, | ||
|
||
// Open picker labels | ||
openDatePickerDialogue: (value, utils) => | ||
value !== null && utils.isValid(value) | ||
? `Күнді таңдаңыз, таңдалған күн ${utils.format(value, 'fullDate')}` | ||
: 'Күнді таңдаңыз', | ||
openTimePickerDialogue: (value, utils) => | ||
value !== null && utils.isValid(value) | ||
? `Уақытты таңдаңыз, таңдалған уақыт ${utils.format(value, 'fullTime')}` | ||
: 'Уақытты таңдаңыз', | ||
|
||
// Table labels | ||
timeTableLabel: 'уақытты таңдау', | ||
dateTableLabel: 'күнді таңдау', | ||
|
||
// Field section placeholders | ||
fieldYearPlaceholder: (params) => 'Ж'.repeat(params.digitAmount), | ||
fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'AAAA' : 'AA'), | ||
fieldDayPlaceholder: () => 'КК', | ||
// fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE', | ||
fieldHoursPlaceholder: () => 'сс', | ||
fieldMinutesPlaceholder: () => 'мм', | ||
fieldSecondsPlaceholder: () => 'сс', | ||
fieldMeridiemPlaceholder: () => '(т|к)', | ||
}; | ||
|
||
export const kzKZ = getPickersLocalization(kzKZPickers); |
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