Pagination: add missing i18n config (#701)

pull/705/head
杨奕 2016-10-28 17:29:50 +08:00 committed by FuryBean
parent 8a72f1b45e
commit 19d7e72f3a
3 changed files with 11 additions and 5 deletions

View File

@ -184,7 +184,7 @@ export default {
render(h) {
return (
<span class="el-pagination__jump">
前往
{ $t('el.pagination.goto') }
<input
class="el-pagination__editor"
type="number"
@ -195,7 +195,7 @@ export default {
on-focus={ this.handleFocus }
style={{ width: '30px' }}
number/>
{ $t('el.pagination.pageClassifier') }
</span>
);
}
@ -204,7 +204,7 @@ export default {
Total: {
render(h) {
return (
<span class="el-pagination__total"> { this.$parent.total } </span>
<span class="el-pagination__total">{ $t('el.pagination.total', { total: this.$parent.total }) }</span>
);
}
},

View File

@ -57,7 +57,10 @@ export default {
placeholder: 'Select'
},
pagination: {
pagesize: '/page'
goto: 'Go to',
pagesize: '/page',
total: 'Total {total}',
pageClassifier: ''
},
messagebox: {
confirm: 'OK',

View File

@ -57,7 +57,10 @@ export default {
placeholder: '请选择'
},
pagination: {
pagesize: '条/页'
goto: '前往',
pagesize: '条/页',
total: '共 {total} 条',
pageClassifier: '页'
},
messagebox: {
confirm: '确定',