Skip to content

Commit

Permalink
[fix/transifex-duplicate-keys] Remove duplicate locale keys before pu…
Browse files Browse the repository at this point in the history
…sh and after pull from Transifex (#130)

* - remove th_TH, pt_PT, pt_BR, nn_NO, nb_NO and en_GB translation duplicates before pushing to and after pulling from Transifex

* [tx] updated translations from transifex

---------

Co-authored-by: ownClouders <[email protected]>
  • Loading branch information
felix-schwarz and ownclouders authored Nov 8, 2024
1 parent 60d6137 commit 1f12f5c
Show file tree
Hide file tree
Showing 4 changed files with 314 additions and 12,292 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-transifex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
shell: bash
run: |
beautifyJSON() {
jq --sort-keys . $1 >$1.tmp
jq --sort-keys 'walk(if type == "object" then del(."th_TH", ."pt_PT", ."pt_BR", ."nn_NO", ."nb_NO", ."en_GB") else . end)' $1 >$1.tmp
mv $1.tmp $1
}
beautifyJSON "ownCloudSDK/Resources/Localizable.xcstrings"
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/push-transifex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: l10n-format
shell: bash
run: |
beautifyJSON() {
jq --sort-keys 'walk(if type == "object" then del(."th_TH", ."pt_PT", ."pt_BR", ."nn_NO", ."nb_NO", ."en_GB") else . end)' $1 >$1.tmp
mv $1.tmp $1
}
beautifyJSON "ownCloudSDK/Resources/Localizable.xcstrings"
beautifyJSON "ownCloudUI/Resources/Localizable.xcstrings"
- name: l10n-push-source
uses: transifex/cli-action@v2
with:
Expand Down
Loading

0 comments on commit 1f12f5c

Please sign in to comment.