Last active
November 2, 2025 12:55
-
-
Save nikolaydubina/f7e6c6db857fafd9893488dae5f05afe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| cat Localizable.xcstrings | jq -r ' | |
| .strings | |
| | to_entries[] | |
| | [.key, | |
| (.value.localizations."zh-Hans".stringUnit.value // ""), | |
| (.value.localizations."zh-Hant".stringUnit.value // ""), | |
| (.value.localizations.ja.stringUnit.value // ""), | |
| (.value.localizations.ko.stringUnit.value // ""), | |
| (.value.localizations.th.stringUnit.value // ""), | |
| (.value.localizations.fil.stringUnit.value // ""), | |
| (.value.localizations.es.stringUnit.value // ""), | |
| (.value.localizations.pt.stringUnit.value // "") | |
| ] | |
| | map(. | gsub("\""; "\\\"") | "\"" + . + "\"") | |
| | join(",") | |
| ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment