Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Change Translations While On Demand #19

Open
dcholth opened this issue Apr 24, 2018 · 1 comment
Open

Change Translations While On Demand #19

dcholth opened this issue Apr 24, 2018 · 1 comment
Labels

Comments

@dcholth
Copy link

dcholth commented Apr 24, 2018

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.

@eugene-manuilov
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants