We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It can be nice to dynamically add phrases without removing the old ones, for example when using code splitting it can be nice to be able to do it.
Are you open to a pull request with this?
The text was updated successfully, but these errors were encountered:
Sure, PRs are welcome 👍
a @@polyglot/ADD_PHRASES action ?
@@polyglot/ADD_PHRASES
const addPhrases = (locale, phrases) => ({ type: '@@polyglot/ADD_PHRASES', payload: { locale, phrases }, });
In your case, if you want to add phrases, you have to be aware of your current locale in your own code (you can use getLocale selector).
dispatch a ADD_PHRASES with wrong locale won't do anything.
ADD_PHRASES
Regarding #15, we would make a cache of phrases, ADD_PHRASES should be take in consideration too.
Actually, there is no way to make a cache of phrases, so it's not the scope of this issue.
Anyway, thank you for taking the time to make an issue :-)
Sorry, something went wrong.
I will make it this weekend 👍
gotrecillo
No branches or pull requests
It can be nice to dynamically add phrases without removing the old ones, for example when using code splitting it can be nice to be able to do it.
Are you open to a pull request with this?
The text was updated successfully, but these errors were encountered: