ealush / emoji-picker-react

The most popular React Emoji Picker
https://ealush.com/emoji-picker-react/
MIT License
1.06k stars 172 forks source link

How can I translate categories labels and `Frequently/Recently used` text? #328

Closed THammami01 closed 1 year ago

THammami01 commented 1 year ago

Hi, I am using i18n in a React TypeScript app and I would like to translate the text of all categories Recently Used, Frequently Used, Smileys & People, ... I can see that the text I am looking for is located in src/config/caterogyConfig.ts, and I'd like to know what is the best way to translate it for my case.

ealush commented 1 year ago

See the 'categories' prop in the docs. It allows you to set custom names per category.