[英]How to change ANTD table text to different language
這通常被稱為i18n
或internationalization
Ant 確實提供了國際化解決方案。
參考文檔ant i18n ,你可以在那里找到語言列表。
import { ConfigProvider } from 'antd';
import es_ES from 'antd/es/locale/es_ES';
return (
<ConfigProvider locale={es_ES}>
<App />
</ConfigProvider>
);
在線試一下:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.