Skip to content

Commit

Permalink
Ran prettier, made type partial
Browse files Browse the repository at this point in the history
  • Loading branch information
GMchris committed Sep 4, 2024
1 parent 74383ab commit ab58297
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/x-date-pickers/src/locales/bgBG.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { PickersLocaleText } from './utils/pickersLocaleTextApi';
import { getPickersLocalization } from './utils/getPickersLocalization';

// This object is not Partial<PickersLocaleText> because it is the default values

const bgBGPickers: PickersLocaleText<any> = {
const bgBGPickers: Partial<PickersLocaleText<any>> = {
// Calendar navigation
previousMonth: 'Минал месец',
nextMonth: 'Следващ месец',
Expand Down Expand Up @@ -38,9 +36,7 @@ const bgBGPickers: PickersLocaleText<any> = {

// Clock labels
clockLabelText: (view, time, adapter) =>
`Избери ${view}. ${
time === null ? 'Не е избран час' : `Избраният час е ${adapter.format(time, 'fullTime')}`
}`,
`Избери ${view}. ${time === null ? 'Не е избран час' : `Избраният час е ${adapter.format(time, 'fullTime')}`}`,
hoursClockNumberText: (hours) => `${hours} часа`,
minutesClockNumberText: (minutes) => `${minutes} минути`,
secondsClockNumberText: (seconds) => `${seconds} секунди`,
Expand All @@ -63,7 +59,6 @@ const bgBGPickers: PickersLocaleText<any> = {
value !== null && utils.isValid(value)
? `Избери час, избраният час е ${utils.format(value, 'fullTime')}`
: 'Избери час',

fieldClearLabel: 'Изчисти стойност',

// Table labels
Expand Down Expand Up @@ -94,6 +89,4 @@ const bgBGPickers: PickersLocaleText<any> = {
empty: 'Празно',
};

export const DEFAULT_LOCALE = bgBGPickers;

export const bgBG = getPickersLocalization(bgBGPickers);
1 change: 1 addition & 0 deletions packages/x-date-pickers/src/locales/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './beBY';
export * from './bgBG';
export * from './caES';
export * from './csCZ';
export * from './daDK';
Expand Down

0 comments on commit ab58297

Please # to comment.