Skip to content

Commit

Permalink
[I10n] Improve Norwegian (nb-NO) locale (#9608)
Browse files Browse the repository at this point in the history
Co-authored-by: Jostein Brevik <[email protected]>
  • Loading branch information
JosteinBrevik and jobrbuypass authored Jul 7, 2023
1 parent 9b0f024 commit 02f29bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/data/date-pickers/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"languageTag": "nb-NO",
"importName": "nbNO",
"localeName": "Norwegian (Bokmål)",
"missingKeysCount": 8,
"missingKeysCount": 0,
"totalKeysCount": 36,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/nbNO.ts"
},
Expand Down
16 changes: 8 additions & 8 deletions packages/x-date-pickers/src/locales/nbNO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ const nbNOPickers: Partial<PickersLocaleText<any>> = {
dateTableLabel: 'velg dato',

// 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',
fieldYearPlaceholder: (params) => 'Å'.repeat(params.digitAmount),
fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'MMMM' : 'MM'),
fieldDayPlaceholder: () => 'DD',
fieldWeekDayPlaceholder: (params) => (params.contentType === 'letter' ? 'EEEE' : 'EE'),
fieldHoursPlaceholder: () => 'tt',
fieldMinutesPlaceholder: () => 'mm',
fieldSecondsPlaceholder: () => 'ss',
fieldMeridiemPlaceholder: () => 'aa',
};

export const nbNO = getPickersLocalization(nbNOPickers);

0 comments on commit 02f29bf

Please sign in to comment.