Martin Novák
8 years ago
committed by
Wei Zhu
5 changed files with 71 additions and 1 deletions
@ -0,0 +1,2 @@ |
|||
import cs_CZ from '../../date-picker/locale/cs_CZ'; |
|||
export default cs_CZ; |
@ -0,0 +1,17 @@ |
|||
import CalendarLocale from 'rc-calendar/lib/locale/cs_CZ'; |
|||
import TimePickerLocale from '../../time-picker/locale/cs_CZ'; |
|||
import assign from 'object-assign'; |
|||
|
|||
// 统一合并为完整的 Locale
|
|||
const locale = { |
|||
lang: assign({ |
|||
placeholder: 'Vybrat datum', |
|||
rangePlaceholder: ['Od', 'Do'], |
|||
}, CalendarLocale), |
|||
timePickerLocale: assign({}, TimePickerLocale), |
|||
}; |
|||
|
|||
// All settings at:
|
|||
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
|||
|
|||
export default locale; |
@ -0,0 +1,45 @@ |
|||
import moment from 'moment'; |
|||
moment.locale('cs'); |
|||
|
|||
import Pagination from 'rc-pagination/lib/locale/cs_CZ'; |
|||
import DatePicker from '../date-picker/locale/cs_CZ'; |
|||
import TimePicker from '../time-picker/locale/cs_CZ'; |
|||
import Calendar from '../calendar/locale/cs_CZ'; |
|||
|
|||
export default { |
|||
locale: 'cs', |
|||
Pagination, |
|||
DatePicker, |
|||
TimePicker, |
|||
Calendar, |
|||
Table: { |
|||
filterTitle: 'Filtr', |
|||
filterConfirm: 'Potvrdit', |
|||
filterReset: 'Obnovit', |
|||
emptyText: 'Žádná data', |
|||
}, |
|||
Modal: { |
|||
okText: 'Ok', |
|||
cancelText: 'Storno', |
|||
justOkText: 'Ok', |
|||
}, |
|||
Popconfirm: { |
|||
okText: 'Ok', |
|||
cancelText: 'Storno', |
|||
}, |
|||
Transfer: { |
|||
notFoundContent: 'Nenalezeno', |
|||
searchPlaceholder: 'Vyhledávání', |
|||
itemUnit: 'položka', |
|||
itemsUnit: 'položek', |
|||
}, |
|||
Select: { |
|||
notFoundContent: 'Nenalezeno', |
|||
}, |
|||
Upload: { |
|||
uploading: 'Nahrávání...', |
|||
removeFile: 'Odstranit soubor', |
|||
uploadError: 'Chyba při nahrávání', |
|||
previewFile: 'Zobrazit soubor', |
|||
}, |
|||
}; |
@ -0,0 +1,5 @@ |
|||
const locale = { |
|||
placeholder: 'Vybrat čas', |
|||
}; |
|||
|
|||
export default locale; |
Loading…
Reference in new issue