-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
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
i18n: add support for user defined overrisable translations in react #2621
Comments
There are some thoughts on this from the workshop in Münster gathered in this pad: https://pad.uni-muenster.de/dd3q7gQcQpqgDwzKocaQBA?both# |
This issue was automatically marked as stale. |
Are there any news on this issue? |
This issue was automatically marked as stale. |
Are there any news? |
This issue was automatically marked as stale. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proposed solution
We utilize the dynamic resource addition of i18next to dynamically add user defined translations in every module.
Currently, each module is creating their own i18next instance. We need to add the following lines
in each module that instantiates such an instance. The
@overriden_translations
is an alias that is defined in cookiecutter-invenio-rdm and points to the same location as the backend translations. If you want to override react translations you will need to create atranslations.json
file with all the keys for that specific language. The workflow would look like the following:Next steps
i18next.js
file and the code changespackage.json
.Open PRs
The text was updated successfully, but these errors were encountered: