mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
Added German locale (#4686)
* Added German locale * Added German locale for pagination
This commit is contained in:
parent
6a83118597
commit
fd233cf430
2
components/calendar/locale/de_DE.tsx
Normal file
2
components/calendar/locale/de_DE.tsx
Normal file
@ -0,0 +1,2 @@
|
||||
import de_DE from '../../date-picker/locale/de_DE';
|
||||
export default de_DE;
|
17
components/date-picker/locale/de_DE.tsx
Normal file
17
components/date-picker/locale/de_DE.tsx
Normal file
@ -0,0 +1,17 @@
|
||||
import CalendarLocale from 'rc-calendar/lib/locale/de_DE';
|
||||
import TimePickerLocale from '../../time-picker/locale/de_DE';
|
||||
import assign from 'object-assign';
|
||||
|
||||
// 统一合并为完整的 Locale
|
||||
const locale = {
|
||||
lang: assign({
|
||||
placeholder: 'Datum auswählen',
|
||||
rangePlaceholder: ['Startdatum', 'Enddatum'],
|
||||
}, CalendarLocale),
|
||||
timePickerLocale: assign({}, TimePickerLocale),
|
||||
};
|
||||
|
||||
// All settings at:
|
||||
// https://github.com/ant-design/ant-design/issues/424
|
||||
|
||||
export default locale;
|
39
components/locale-provider/de_DE.tsx
Normal file
39
components/locale-provider/de_DE.tsx
Normal file
@ -0,0 +1,39 @@
|
||||
import moment from 'moment';
|
||||
moment.locale('de');
|
||||
|
||||
import Pagination from 'rc-pagination/lib/locale/de_DE';
|
||||
import DatePicker from '../date-picker/locale/de_DE';
|
||||
import TimePicker from '../time-picker/locale/de_DE';
|
||||
import Calendar from '../calendar/locale/de_DE';
|
||||
|
||||
export default {
|
||||
locale: 'de',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'Filter-Menü',
|
||||
filterConfirm: 'OK',
|
||||
filterReset: 'Zurücksetzen',
|
||||
emptyText: 'Keine Daten',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Abbrechen',
|
||||
justOkText: 'OK',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'OK',
|
||||
cancelText: 'Abbrechen',
|
||||
},
|
||||
Transfer: {
|
||||
notFoundContent: 'Nicht gefunden',
|
||||
searchPlaceholder: 'Suchen',
|
||||
itemUnit: 'Eintrag',
|
||||
itemsUnit: 'Einträge',
|
||||
},
|
||||
Select: {
|
||||
notFoundContent: 'Nicht gefunden',
|
||||
},
|
||||
};
|
2
components/pagination/locale/de_DE.tsx
Normal file
2
components/pagination/locale/de_DE.tsx
Normal file
@ -0,0 +1,2 @@
|
||||
import de_DE from 'rc-pagination/lib/locale/de_DE';
|
||||
export default de_DE;
|
5
components/time-picker/locale/de_DE.tsx
Normal file
5
components/time-picker/locale/de_DE.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
const locale = {
|
||||
placeholder: 'Zeit auswählen',
|
||||
};
|
||||
|
||||
export default locale;
|
Loading…
Reference in New Issue
Block a user