react-gettext icon indicating copy to clipboard operation
react-gettext copied to clipboard

Change Translations While On Demand

Open dcholth opened this issue 6 years ago • 1 comments

Great little library! One thing I'm not seeing is the ability to change the application translation after initialization. Just want to confirm I'm not missing this.

dcholth avatar Apr 24 '18 17:04 dcholth

Thanks, @dcholth!

It is pretty simple, just change translations catalog and plural form for your HOC and it should trigger re-render cycle. See example application: https://github.com/eugene-manuilov/react-gettext/tree/master/examples/poedit

Hope it will help.

eugene-manuilov avatar Apr 24 '18 18:04 eugene-manuilov