Skip to content

Commit

Permalink
[l10n] Improve Danish (da-DK) locale (mui#13375)
Browse files Browse the repository at this point in the history
Signed-off-by: Gene Arch <genepaularch@gmail.com>
Co-authored-by: Gene Arch <genepaularch@gmail.com>
Co-authored-by: Rom Grk <romgrk.cc@gmail.com>
  • Loading branch information
3 people authored and thomasmoon committed Sep 6, 2024
1 parent a164737 commit b9b6e26
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 @@ -51,7 +51,7 @@
"languageTag": "da-DK",
"importName": "daDK",
"localeName": "Danish",
"missingKeysCount": 14,
"missingKeysCount": 0,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-date-pickers/src/locales/daDK.ts"
},
Expand Down
28 changes: 14 additions & 14 deletions packages/x-date-pickers/src/locales/daDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const daDKPickers: Partial<PickersLocaleText<any>> = {
// DateRange labels
start: 'Start',
end: 'Slut',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: 'Start dato',
startTime: 'Start tid',
endDate: 'Slut date',
endTime: 'Slut tid',

// Action bar
cancelButtonLabel: 'Annuller',
Expand Down Expand Up @@ -68,7 +68,7 @@ const daDKPickers: Partial<PickersLocaleText<any>> = {
value !== null && utils.isValid(value)
? `Vælg tidspunkt, valgte tidspunkt er ${utils.format(value, 'fullTime')}`
: 'Vælg tidspunkt',
// fieldClearLabel: 'Clear value',
fieldClearLabel: 'ryd felt',

// Table labels
timeTableLabel: 'vælg tidspunkt',
Expand All @@ -85,17 +85,17 @@ const daDKPickers: 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: 'ugedag',
hours: 'timer',
minutes: 'minutter',
seconds: 'sekunder',
meridiem: 'middag',

// Common
// empty: 'Empty',
empty: 'tom',
};

export const daDK = getPickersLocalization(daDKPickers);

0 comments on commit b9b6e26

Please sign in to comment.