Skip to content

Commit

Permalink
[l10n] Improve Norwegian (nb-NO) locale (mui#16083) (@josteinjhauge) (m…
Browse files Browse the repository at this point in the history
…ui#16089)

Signed-off-by: Jostein Hauge <josteinjhauge@me.com>
Co-authored-by: Jostein Hauge <josteinjhauge@me.com>
  • Loading branch information
LukasTy and josteinjhauge authored Jan 7, 2025
1 parent 0a8dff6 commit fb23fd1
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/master/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> = {
// 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 @@ -63,7 +63,7 @@ const nbNOPickers: Partial<PickersLocaleText> = {
formattedDate ? `Velg dato, valgt dato er ${formattedDate}` : 'Velg dato',
openTimePickerDialogue: (formattedTime) =>
formattedTime ? `Velg tid, valgt tid er ${formattedTime}` : 'Velg tid',
// fieldClearLabel: 'Clear',
fieldClearLabel: 'Slett',

// Table labels
timeTableLabel: 'velg tid',
Expand All @@ -80,17 +80,17 @@ const nbNOPickers: Partial<PickersLocaleText> = {
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 fb23fd1

Please sign in to comment.