From 9965f01897ae4cfa359f81550bb3ac969163b470 Mon Sep 17 00:00:00 2001 From: Michael Krog Date: Tue, 20 Nov 2018 08:06:22 +0100 Subject: [PATCH] feat: Adds danish locale --- components/i18n/languages/da_DK.ts | 44 +++++++++++++++++++ .../i18n/languages/date-picker/da_DK.ts | 19 ++++++++ .../i18n/languages/time-picker/da_DK.ts | 6 +++ 3 files changed, 69 insertions(+) create mode 100644 components/i18n/languages/da_DK.ts create mode 100644 components/i18n/languages/date-picker/da_DK.ts create mode 100644 components/i18n/languages/time-picker/da_DK.ts diff --git a/components/i18n/languages/da_DK.ts b/components/i18n/languages/da_DK.ts new file mode 100644 index 0000000000..25387489ab --- /dev/null +++ b/components/i18n/languages/da_DK.ts @@ -0,0 +1,44 @@ +import Calendar from './calendar/da_DK'; +import DatePicker from './date-picker/da_DK'; +import Pagination from './pagination/da_DK'; +import TimePicker from './time-picker/da_DK'; + +export default { + locale: 'da', + DatePicker, + TimePicker, + Calendar, + Pagination, + Table: { + filterTitle: 'Filtermenu', + filterConfirm: 'OK', + filterReset: 'Nulstil', + emptyText: 'Ingen data', + selectAll: 'Vælg alle', + selectInvert: 'Inverter valg', + }, + Modal: { + okText: 'OK', + cancelText: 'Annuller', + justOkText: 'OK', + }, + Popconfirm: { + okText: 'OK', + cancelText: 'Annuller', + }, + Transfer: { + notFoundContent: 'Intet match', + searchPlaceholder: 'Søg her', + itemUnit: 'element', + itemsUnit: 'elementer', + }, + Select: { + notFoundContent: 'Intet match', + }, + Upload: { + uploading: 'Uploader...', + removeFile: 'Fjern fil', + uploadError: 'Fejl ved upload', + previewFile: 'Forhåndsvisning', + }, +}; diff --git a/components/i18n/languages/date-picker/da_DK.ts b/components/i18n/languages/date-picker/da_DK.ts new file mode 100644 index 0000000000..dd83ad4441 --- /dev/null +++ b/components/i18n/languages/date-picker/da_DK.ts @@ -0,0 +1,19 @@ +import CalendarLocale from '../calendar/da_DK'; +import TimePickerLocale from '../time-picker/da_DK'; + +// Merge into a locale object +const locale = { + lang: { + placeholder: 'Vælg dato', + rangePlaceholder: ['Startdato', 'Slutdato'], + ...CalendarLocale, + }, + timePickerLocale: { + ...TimePickerLocale, + }, +}; + +// All settings at: +// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json + +export default locale; diff --git a/components/i18n/languages/time-picker/da_DK.ts b/components/i18n/languages/time-picker/da_DK.ts new file mode 100644 index 0000000000..c5142d3ae9 --- /dev/null +++ b/components/i18n/languages/time-picker/da_DK.ts @@ -0,0 +1,6 @@ +const locale = { + placeholder: 'Vælg tid', + }; + + export default locale; + \ No newline at end of file