-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
parseMissingKeyHandler does not include nameSpace #1507
Comments
As the function name says, parseMissingKeyHandler will just get the key.... |
But it used to include namespace when appendNamespaceToMissingKey was enabled. |
Sorry, can you describe better your use case? |
Basically in our app there are translation files that we deploy to localazy for i18next backend when we deploy code to staging. When app loads then we get translations from localazy and when translation is missing then in But in dev env we also create translation bundle (JS object) from those translation files and flow is that if translation is missing in localazy then |
Here is the code also if interested:
|
Is my assumption correct, this was working until v21.6.10 ? |
I really can't tell, but it could be so. All i know that my code was made 4 months ago and then it worked. And if i remember correctly first time i noticed that something is not right was about month ago.. so could be in this time period. I would not mind if
|
v21.8.6 should now work with appendNamespaceToMissingKey, like before... the second argument is already taken by the optional default value |
btw: you may not know, but all this could be simplified if using directly the service of the main i18next sponsor => locize |
Thank you so much! Working now as expected! |
💥 Regression Report
parseMissingKeyHandler
key does not include nameSpace even whenappendNamespaceToMissingKey: true
Last working version
I don't know what version it worked but i noticed in latest versions that it does not include namespace in missing key anymore
Expected behavior
Missing key should include namespace when
appendNamespaceToMissingKey: true
Other
I'm using useTranslations
and parseMissingKeyHandler missingkey is 'title' not 'payment:title' as it used to be. Not sure if it is related to react-i18next or i18next
The text was updated successfully, but these errors were encountered: