Open zzacharo opened 8 months ago
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.
This issue was automatically marked as stale.
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