admin管理员组文章数量:1336008
how can I change the text inside the ant design pagination select? there's no solution in the documents,
I need to change the word "page" to something else:
how can I change the text inside the ant design pagination select? there's no solution in the documents,
I need to change the word "page" to something else:
Share Improve this question asked Jan 6, 2021 at 0:09 Sima GhoreyshiSima Ghoreyshi 4278 silver badges23 bronze badges3 Answers
Reset to default 9I try this solution and it works.
<Pagination
defaultCurrent={1}
total={50}
locale={{ items_per_page: "/ หน้า"}}
/>
After searching almost everywhere, I came to this conclusion that there's not a normal way to change the default words.
For changing the language there's the locale option, and in the files defined for locale we can change the default words, which is an unusual thing to do but not impossible!
pagination={{
locale: {
items_per_page: intl.formatMessage({ id: "mon-table-per-page" }),
},
}}
本文标签: javascriptANTD how to change the text inside the pagination select boxStack Overflow
版权声明:本文标题:javascript - ANTD: how to change the text inside the pagination select box - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741807770a2398609.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论