Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] 分页栏的“前往___页”中的“前往”二字,应该改成“到第” #16030

Closed
gh-xiaoxiao opened this issue Jun 12, 2019 · 3 comments

Comments

@gh-xiaoxiao
Copy link

Existing Component

Component Name

Pagination

Description

分页栏的“前往 X 页”中的“前往”二字,应该改成“到第”,效果如:“到第 X 页”,这样读起来顺口些。

@waldonUB
Copy link

这个可以自己改的

@fudax
Copy link

fudax commented Jun 13, 2019

新建assets/locale/cn.js,修改pagination组件的文本:

  pagination: {
    goto: '前往 第',
    pagesize: '条/页',
    total: '共 {total} 条',
    pageClassifier: '页'
  },

官方文件地址:https://github.com/ElemeFE/element/blob/dev/src/locale/lang/zh-CN.js

入口(main.js)的地方参照element-ui帮助文档国际化部分的说明:

import locale from './assets/locale/cn.js';
Vue.use(ElementUI, { locale });

@island205
Copy link
Contributor

@fudax nice explain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants