-
Notifications
You must be signed in to change notification settings - Fork 392
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
[Translation Module] Extract Message is not working properly #102
Comments
safranx
changed the title
[i18next] Translations: Cannot read property of undefined
[i18next] Translations: Cannot read property [WHATEVER] of undefined
Dec 23, 2020
safranx
changed the title
[i18next] Translations: Cannot read property [WHATEVER] of undefined
[i18next] Translations: Cannot read property [whatever] of undefined
Dec 23, 2020
safranx
changed the title
[i18next] Translations: Cannot read property [whatever] of undefined
[i18next] Translations tree issue with and without extracting messages.
Dec 23, 2020
safranx
changed the title
[i18next] Translations tree issue with and without extracting messages.
[Translation Module] isImportedTranslationObject(content, key) Issue.
Dec 24, 2020
safranx
changed the title
[Translation Module] isImportedTranslationObject(content, key) Issue.
[Translation Module] Extract Message is not working properly
Dec 24, 2020
Good catch. Thanks |
Can-Sahin
added a commit
that referenced
this issue
Dec 25, 2020
Fixed with 4b8788c |
Translations aren't working properly if the component or container isn't import with his "optional" Loadable.ts. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before opening a new issue, please take a moment to review our community guidelines to make the contribution process easy and effective for everyone involved.
Description
I tried to add new translations, to a generated component but I am getting an error:
TypeError: Cannot readt property 'whatever' of undefined
Steps to reproduce
Steps to reproduce the behavior:
Adding a new translation entry to messages.ts (in the new build component (Footer))
Extracting messages to generate the new entry in translation.json files:
yarn run extract-messages
.QUICK FIX
You have to edit the function
isImportedTranslationObject(content, key)
.In internals\extractMessages\stringfyTranslations.js remplace
+locales/i18n.*
by+locales/translations.*
Versions
The text was updated successfully, but these errors were encountered: