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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot parse the keys from all my specified project files #502
Comments
I have a similar problem, after updating to version 5.x.x it doesn't extract translation correctly |
@buyhighHippo Can you provide a reproduceable example? |
@karellm we have the same issue in our repo https://github.com/kubevirt-ui/kubevirt-plugin we have a script for parsing: https://github.com/kubevirt-ui/kubevirt-plugin/blob/main/package.json#L12 can you please help? |
I found the problem, I had this in my source code: |
I can confirm! Also in our repo https://github.com/kubevirt-ui/kubevirt-plugin |
I have just checked our project, I also found a |
Hi 馃憢 indeed empty keys are resetting the namespace catalog here: Lines 30 to 33 in e875d60
t('') can mess up all translations from a project, and there is another use case I found in our codebase:
i18n.t("some key: {{key}}", { key: someVar }) It extracts an empty key too. After removing all the empty keys, it seems to work just fine, but this behavior looks quite dangerous 馃槄 what do you think? |
Thanks for finding the issue @alk-sdavid. I've pushed a patch as |
thanks @karellm it seems to work as expected now 馃憤 |
馃悰 Bug Report
Can not manage to retrieve all my keys and write them in my output files, it is currently missing every keys called in my components/**/*.{ts,tsx}, the other keys are well retrieved as wanted
To Reproduce
my config file is set with input as below
Expected behavior
parse all my specified files and add the new found keys in my output: "public/locales/$LOCALE/$NAMESPACE.json" file.
Your Environment
The text was updated successfully, but these errors were encountered: