-
Notifications
You must be signed in to change notification settings - Fork 151
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
generate-localization-file include only strings without tags #291
Comments
Hello! Have you tried the
|
Thanks, I didn't knew that existed, the docs don't mention it.
|
A ha! Sorry, it's not super clear.
If you only specify untagged you get everything. Tagged and untagged. So you really want to specify NO tag. Or a tag that doesn't exist. As well as untagged. So either of these should theoretically work:
I definitely think we could do something here to make this better and/or more obvious. |
I have a twine file with keys containing no tags and keys containing tags.
e.g.
twine example
I can't seem to get only the strings without tags.
Getting only the infoPlist strings works with the following command:
twine generate-localization-file ./twine.txt ./test.strings --lang en --format apple --tags infoplist
But using ~infoplist doesn't work
$ twine generate-localization-file ./twine.txt ./test.strings --lang en --format apple --tags ~infoplist
zsh: no such user or named directory: infoplist
Wrapping it inside double quotes also doesn't work
$ twine generate-localization-file ./twine.txt ./test.strings --lang en --format apple --tags "~infoplist"
Nothing to generate! The resulting file would not contain any translations.
Is it perhaps required that all field have tags when working with --tags?
As I noticed that when I add the tag "common" to one of the strings without tags the command succeeds when using double quotes and contains only the one string.
But I would expect it to also include the strings without tags.
The text was updated successfully, but these errors were encountered: