mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
fce6862696
* Add uk-UA localization Ukrainian localization for the following components: - locale-provider - DatePicker - TimePicker - Calendar * Add uk_UA locale to test suite * Add uk_UA locale to tests snapshot Tests on CI are failing because there are no snapshot for uk_UA locale. Generate a snapshot with `npm test -u` command and add it to the test suite.
19 lines
503 B
TypeScript
19 lines
503 B
TypeScript
import CalendarLocale from 'rc-calendar/lib/locale/uk_UA';
|
|
import TimePickerLocale from '../../time-picker/locale/uk_UA';
|
|
|
|
const locale = {
|
|
lang: {
|
|
placeholder: 'Оберіть дату',
|
|
rangePlaceholder: ['Початкова дата', 'Кінцева дата'],
|
|
...CalendarLocale,
|
|
},
|
|
timePickerLocale: {
|
|
...TimePickerLocale,
|
|
},
|
|
};
|
|
|
|
// All settings at:
|
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|
|
|
export default locale;
|