Skip to content
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: removed strings generated with scanner #345

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

mb-wali
Copy link
Contributor

@mb-wali mb-wali commented Jul 19, 2021

No description provided.

@mb-wali
Copy link
Contributor Author

mb-wali commented Jul 19, 2021

i18next scanner - has some issue while extracting messages only if the strings are marked with Trans component.
the issue is that it passes the key to values for other languages rather than only to eng language.

Copy link
Member

@zzacharo zzacharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mb-wali what about adding here the https://github.com/i18next/react-i18next-gitbook/blob/master/latest/i18nextprovider.md#when-to-use as it this is the component library and leave the global context i.e the default one, in the inveniosoftware/invenio-app-rdm#978 ?

@@ -23,6 +24,9 @@ const options = {
// cache user language off
caches: [],
},
react: {
transKeepBasicHtmlNodesFor: [],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a comment on why is this needed?

@mb-wali mb-wali force-pushed the i18n-bugs branch 4 times, most recently from 55c2a82 to f17eb24 Compare July 20, 2021 08:56
@zzacharo zzacharo force-pushed the i18n-bugs branch 3 times, most recently from e700620 to 4fc0098 Compare July 20, 2021 11:52
@zzacharo zzacharo merged commit ec436c9 into inveniosoftware:master Jul 20, 2021
@mb-wali mb-wali deleted the i18n-bugs branch July 21, 2021 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants