-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[l10n] Add Bulgarian (bg-BG) locale (#14469)
- Loading branch information
Showing
3 changed files
with
109 additions
and
0 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,100 @@ | ||
import { PickersLocaleText } from './utils/pickersLocaleTextApi'; | ||
import { getPickersLocalization } from './utils/getPickersLocalization'; | ||
import { TimeViewWithMeridiem } from '../internals/models'; | ||
|
||
const views: Record<TimeViewWithMeridiem, string> = { | ||
hours: 'часове', | ||
minutes: 'минути', | ||
seconds: 'секунди', | ||
meridiem: 'преди обяд/след обяд', | ||
}; | ||
|
||
const bgBGPickers: Partial<PickersLocaleText<any>> = { | ||
// Calendar navigation | ||
previousMonth: 'Предишен месец', | ||
nextMonth: 'Следващ месец', | ||
|
||
// View navigation | ||
openPreviousView: 'Отвори предишен изглед', | ||
openNextView: 'Отвори следващ изглед', | ||
calendarViewSwitchingButtonAriaLabel: (view) => | ||
view === 'year' | ||
? 'отворен е изглед на година, премини на изглед на календар' | ||
: 'отворен е изглед на календар, премини на изглед на година', | ||
|
||
// DateRange labels | ||
start: 'Начало', | ||
end: 'Край', | ||
startDate: 'Начална дата', | ||
startTime: 'Начален час', | ||
endDate: 'Крайна дата', | ||
endTime: 'Краен час', | ||
|
||
// Action bar | ||
cancelButtonLabel: 'Отказ', | ||
clearButtonLabel: 'Изчисти', | ||
okButtonLabel: 'ОК', | ||
todayButtonLabel: 'Днес', | ||
|
||
// Toolbar titles | ||
datePickerToolbarTitle: 'Избери дата', | ||
dateTimePickerToolbarTitle: 'Избери дата и час', | ||
timePickerToolbarTitle: 'Избери час', | ||
dateRangePickerToolbarTitle: 'Избери времеви период', | ||
|
||
// Clock labels | ||
clockLabelText: (view, time, adapter) => | ||
`Избери ${views[view]}. ${time === null ? 'Не е избран час' : `Избраният час е ${adapter.format(time, 'fullTime')}`}`, | ||
hoursClockNumberText: (hours) => `${hours} часа`, | ||
minutesClockNumberText: (minutes) => `${minutes} минути`, | ||
secondsClockNumberText: (seconds) => `${seconds} секунди`, | ||
|
||
// Digital clock labels | ||
selectViewText: (view) => `Избери ${views[view]}`, | ||
|
||
// 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')}` | ||
: 'Избери час', | ||
fieldClearLabel: 'Изчисти стойност', | ||
|
||
// Table labels | ||
timeTableLabel: 'избери час', | ||
dateTableLabel: 'избери дата', | ||
|
||
// Field section placeholders | ||
fieldYearPlaceholder: (params) => 'Г'.repeat(params.digitAmount), | ||
fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'ММММ' : 'ММ'), | ||
fieldDayPlaceholder: () => 'ДД', | ||
fieldWeekDayPlaceholder: (params) => (params.contentType === 'letter' ? 'СССС' : 'СС'), | ||
fieldHoursPlaceholder: () => 'чч', | ||
fieldMinutesPlaceholder: () => 'мм', | ||
fieldSecondsPlaceholder: () => 'сс', | ||
fieldMeridiemPlaceholder: () => 'пс', | ||
|
||
// View names | ||
year: 'Година', | ||
month: 'Месец', | ||
day: 'Ден', | ||
weekDay: 'Ден от седмицата', | ||
hours: 'Часове', | ||
minutes: 'Минути', | ||
seconds: 'Секунди', | ||
meridiem: 'Преди обяд/след обяд', | ||
|
||
// Common | ||
empty: 'Празно', | ||
}; | ||
|
||
export const bgBG = getPickersLocalization(bgBGPickers); |
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