-
-
Notifications
You must be signed in to change notification settings - Fork 50.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a9db14
commit 4f05e2c
Showing
5 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import cs_CZ from '../../date-picker/locale/cs_CZ'; | ||
export default cs_CZ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const locale = { | ||
placeholder: 'Vybrat čas', | ||
}; | ||
|
||
export default locale; |