-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Handle namespaces automatically #188
Comments
You can find a workaround in the meantime here: #142 (comment) |
Thanks @montogeek but this is a different issue. I am using that solution along with |
No workaround found? |
Unfortunately not, #142 (comment) - is not the same. It is about to use the first namespace from |
🚀 Feature Proposal
Allow the scanner to automatically detect and generate the namespaces automatically, without needing to specify them in the
ns
option.Motivation
I have a (react-native) project with many namespaces. Basically, one per page/screen. That makes it cumbersome to have to update manually and list all the namespaces in the
ns
option.If I forget one, I get the error
*** does not exist in the namespaces ***
. While this error is useful to identify the issue, it is still not ideal to have to add the namespaces manually since I have dozens of them.Ideally, I would just like to pass an option to
ns
(maybefalse
) so that the plugin will just go ahead and generate any{{lng}}/{{ns}}.json
file I need, based on the usage.Example
If
myNamespace
exists (the file exists), it should just add thehello
key to it.If not, it should create the file.
All this without the need to have to add
myNamespace
anywhere in the options.Thank you
The text was updated successfully, but these errors were encountered: