add local

pull/165/head
tjz 2018-03-15 21:52:58 +08:00
parent 4b2f56a7a9
commit b41263b247
3 changed files with 11 additions and 9 deletions

View File

@ -205,7 +205,9 @@ export default {
<LocaleReceiver
componentName='Calendar'
defaultLocale={enUS}
children={this.renderCalendar}
scopedSlots={
{ default: this.renderCalendar }
}
/>
)
},

View File

@ -1,14 +1,14 @@
import Pagination from '../vc-pagination/locale/en_US'
// import DatePicker from '../date-picker/locale/en_US'
import DatePicker from '../date-picker/locale/en_US'
import TimePicker from '../time-picker/locale/en_US'
// import Calendar from '../calendar/locale/en_US'
import Calendar from '../calendar/locale/en_US'
export default {
locale: 'en',
Pagination,
// DatePicker,
DatePicker,
TimePicker,
// Calendar,
Calendar,
Table: {
filterTitle: 'Filter menu',
filterConfirm: 'OK',

View File

@ -1,14 +1,14 @@
import Pagination from '../vc-pagination/locale/zh_CN'
// import DatePicker from '../date-picker/locale/zh_CN'
import DatePicker from '../date-picker/locale/zh_CN'
import TimePicker from '../time-picker/locale/zh_CN'
// import Calendar from '../calendar/locale/zh_CN'
import Calendar from '../calendar/locale/zh_CN'
export default {
locale: 'zh-cn',
Pagination,
// DatePicker,
DatePicker,
TimePicker,
// Calendar,
Calendar,
Table: {
filterTitle: '筛选',
filterConfirm: '确定',