Skip to content

Commit

Permalink
[fix/xcstring-formatting] add step to normalize/beautify xcstrings fi…
Browse files Browse the repository at this point in the history
…les (#1404)

* - pull-transifex.yml: add step to normalize/beautify xcstrings files after pulling from Transifex

* - pull-transifex: add key sorting
  • Loading branch information
felix-schwarz authored Oct 18, 2024
1 parent ea91a86 commit c584413
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pull-transifex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ jobs:
token: ${{ secrets.TX_TOKEN }}
args: pull --force --skip --all

- name: l10n-format
shell: bash
run: |
beautifyJSON() {
jq --sort-keys . "$1" >"$1.tmp"
mv "$1.tmp" "$1"
}
beautifyJSON "ownCloud Action Extension/InfoPlist.xcstrings"
beautifyJSON "ownCloud File Provider/Localizable.xcstrings"
beautifyJSON "ownCloud Share Extension/InfoPlist.xcstrings"
beautifyJSON "ownCloud/Resources/InfoPlist.xcstrings"
beautifyJSON "ownCloud/Resources/Localizable.xcstrings"
beautifyJSON "ownCloudAppFramework/Resources/Localizable.xcstrings"
- uses: GuillaumeFalourd/[email protected]
with:
email: [email protected]
Expand Down

0 comments on commit c584413

Please sign in to comment.