forked from mui/mui-x
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[l10n] Add Basque (eu) locale and improve Spanish (es-ES) locale (mui…
…#10985) Co-authored-by: Lajto 理德 <[email protected]> Co-authored-by: David Andrés <[email protected]>
- Loading branch information
1 parent
9cd93ce
commit 9ec35c4
Showing
8 changed files
with
119 additions
and
16 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
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,87 @@ | ||
import { PickersLocaleText } from './utils/pickersLocaleTextApi'; | ||
import { getPickersLocalization } from './utils/getPickersLocalization'; | ||
import { TimeViewWithMeridiem } from '../internals/models'; | ||
|
||
const views: Record<TimeViewWithMeridiem, string> = { | ||
hours: 'orduak', | ||
minutes: 'minutuak', | ||
seconds: 'segunduak', | ||
meridiem: 'meridianoa', | ||
}; | ||
|
||
const euPickers: Partial<PickersLocaleText<any>> = { | ||
// Calendar navigation | ||
previousMonth: 'Azken hilabetea', | ||
nextMonth: 'Hurrengo hilabetea', | ||
|
||
// View navigation | ||
openPreviousView: 'azken bista ireki', | ||
openNextView: 'hurrengo bista ireki', | ||
calendarViewSwitchingButtonAriaLabel: (view) => | ||
view === 'year' | ||
? 'urteko bista irekita dago, aldatu egutegi bistara' | ||
: 'egutegi bista irekita dago, aldatu urteko bistara', | ||
|
||
// DateRange placeholders | ||
start: 'Hasi', | ||
end: 'Bukatu', | ||
|
||
// Action bar | ||
cancelButtonLabel: 'Utxi', | ||
clearButtonLabel: 'Garbitu', | ||
okButtonLabel: 'OK', | ||
todayButtonLabel: 'Gaur', | ||
|
||
// Toolbar titles | ||
datePickerToolbarTitle: 'Data aukeratu', | ||
dateTimePickerToolbarTitle: 'Data eta ordua aukeratu', | ||
timePickerToolbarTitle: 'Ordua aukeratu', | ||
dateRangePickerToolbarTitle: 'Data tartea aukeratu', | ||
|
||
// Clock labels | ||
clockLabelText: (view, time, adapter) => | ||
`Aukeratu ${views[view]}. ${ | ||
time === null | ||
? 'Ez da ordurik aukertau' | ||
: `Aukeratutako ordua ${adapter.format(time, 'fullTime')} da` | ||
}`, | ||
hoursClockNumberText: (hours) => `${hours} ordu`, | ||
minutesClockNumberText: (minutes) => `${minutes} minutu`, | ||
secondsClockNumberText: (seconds) => `${seconds} segundu`, | ||
|
||
// Digital clock labels | ||
selectViewText: (view) => `Aukeratu ${views[view]}`, | ||
|
||
// Calendar labels | ||
calendarWeekNumberHeaderLabel: 'Astea zenbakia', | ||
calendarWeekNumberHeaderText: '#', | ||
calendarWeekNumberAriaLabelText: (weekNumber) => `${weekNumber} astea`, | ||
calendarWeekNumberText: (weekNumber) => `${weekNumber}`, | ||
|
||
// Open picker labels | ||
openDatePickerDialogue: (value, utils) => | ||
value !== null && utils.isValid(value) | ||
? `Data aukeratu, aukeratutako data ${utils.format(value, 'fullDate')} da` | ||
: 'Data aukeratu', | ||
openTimePickerDialogue: (value, utils) => | ||
value !== null && utils.isValid(value) | ||
? `Ordua aukeratu, aukeratutako ordua ${utils.format(value, 'fullTime')} da` | ||
: 'Ordua aukeratu', | ||
fieldClearLabel: 'Balioa garbitu', | ||
|
||
// Table labels | ||
timeTableLabel: 'ordua aukeratu', | ||
dateTableLabel: 'data aukeratu', | ||
|
||
// Field section placeholders | ||
fieldYearPlaceholder: (params) => 'Y'.repeat(params.digitAmount), | ||
fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'MMMM' : 'MM'), | ||
fieldDayPlaceholder: () => 'DD', | ||
fieldWeekDayPlaceholder: (params) => (params.contentType === 'letter' ? 'EEEE' : 'EE'), | ||
fieldHoursPlaceholder: () => 'hh', | ||
fieldMinutesPlaceholder: () => 'mm', | ||
fieldSecondsPlaceholder: () => 'ss', | ||
fieldMeridiemPlaceholder: () => 'aa', | ||
}; | ||
|
||
export const eu = getPickersLocalization(euPickers); |
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
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