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 3, 2024
1 parent 74383ab commit 1f019ef
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 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

0 comments on commit 1f019ef

Please sign in to comment.