Rajeesh
Rajeesh

Reputation: 13

How to add custom translation to Antdesign + React.js App

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

Answers (1)

Clafouti
Clafouti

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

Related Questions