refine i18n demo

This commit is contained in:
Pan
2018-09-10 13:02:18 +08:00
parent f85b044ff8
commit fbb3641406
2 changed files with 44 additions and 12 deletions

View File

@@ -5,6 +5,7 @@ export default {
title: '切换语言',
note: '本项目国际化基于 vue-i18n',
datePlaceholder: '请选择日期',
selectPlaceholder: '请选择',
tableDate: '日期',
tableName: '姓名',
tableAddress: '地址',
@@ -13,15 +14,18 @@ export default {
success: '成功按钮',
info: '信息按钮',
warning: '警告按钮',
danger: '危险按钮'
danger: '危险按钮',
one: '一',
two: '二',
three: '三'
}
},
en: {
i18nView: {
title: 'Switch Language',
note: 'The internationalization of this project is based on vue-i18n',
datePlaceholder: 'Pick a day',
selectPlaceholder: 'Select',
tableDate: 'tableDate',
tableName: 'tableName',
tableAddress: 'tableAddress',
@@ -30,7 +34,10 @@ export default {
success: 'success',
info: 'info',
warning: 'warning',
danger: 'danger'
danger: 'danger',
one: 'One',
two: 'Two',
three: 'Three'
}
}
}