Skip to content

Commit

Permalink
[l10n] Improve Norwegian (nb-NO) locale (#16083)
Browse files Browse the repository at this point in the history
Signed-off-by: Jostein Hauge <josteinjhauge@me.com>
  • Loading branch information
josteinjhauge authored Jan 7, 2025
1 parent 459e517 commit 4189b60
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 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 @@ -187,7 +187,7 @@
"languageTag": "nb-NO",
"importName": "nbNO",
"localeName": "Norwegian (Bokmål)",
"missingKeysCount": 14,
"missingKeysCount": 0,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/v7.x/packages/x-date-pickers/src/locales/nbNO.ts"
},
Expand Down
28 changes: 14 additions & 14 deletions packages/x-date-pickers/src/locales/nbNO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const nbNOPickers: Partial<PickersLocaleText<any>> = {
// DateRange labels
start: 'Start',
end: 'Slutt',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: 'Startdato',
startTime: 'Starttid',
endDate: 'Sluttdato',
endTime: 'Slutttid',

// Action bar
cancelButtonLabel: 'Avbryt',
Expand Down Expand Up @@ -67,7 +67,7 @@ const nbNOPickers: Partial<PickersLocaleText<any>> = {
formattedTime || (value !== null && utils.isValid(value))
? `Velg tid, valgt tid er ${formattedTime ?? utils.format(value, 'fullTime')}`
: 'Velg tid',
// fieldClearLabel: 'Clear',
fieldClearLabel: 'Slett',

// Table labels
timeTableLabel: 'velg tid',
Expand All @@ -84,17 +84,17 @@ const nbNOPickers: Partial<PickersLocaleText<any>> = {
fieldMeridiemPlaceholder: () => 'aa',

// View names
// year: 'Year',
// month: 'Month',
// day: 'Day',
// weekDay: 'Week day',
// hours: 'Hours',
// minutes: 'Minutes',
// seconds: 'Seconds',
// meridiem: 'Meridiem',
year: 'År',
month: 'Måned',
day: 'Dag',
weekDay: 'Ukedag',
hours: 'Timer',
minutes: 'Minutter',
seconds: 'Sekunder',
meridiem: 'Meridiem',

// Common
// empty: 'Empty',
empty: 'Tøm',
};

export const nbNO = getPickersLocalization(nbNOPickers);

0 comments on commit 4189b60

Please sign in to comment.