Reputation: 13
I am using Antd + React.js combination. Can anybody help me with how to implement Internationalization like I want to add my own translation too? I understand how the default one is working. I would like to add the translation for my own custom component.
Upvotes: 0
Views: 1095
Reputation: 4615
If you have your own custom component you probably won't be able to use internationalization that comes packed with antd components.
Your best bet would probably be a library like react-i18next or react-intl. Both are easy to implement and can provide you a way to put any kind of translated/formatted strings in your application, no matter what UI framework you actually use.
Upvotes: 1