Added German locale (#4686)

* Added German locale

* Added German locale for pagination
This commit is contained in:
Simon Waloschek 2017-01-25 14:12:27 +01:00 committed by 偏右
parent 6a83118597
commit fd233cf430
5 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,2 @@
import de_DE from '../../date-picker/locale/de_DE';
export default de_DE;

View 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;

View 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',
},
};

View File

@ -0,0 +1,2 @@
import de_DE from 'rc-pagination/lib/locale/de_DE';
export default de_DE;

View File

@ -0,0 +1,5 @@
const locale = {
placeholder: 'Zeit auswählen',
};
export default locale;