-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- normalizestrings: add xcstrings normalization support
- pull-transifex.yml: add normalizestrings xcstrings normalization
- Loading branch information
1 parent
828f78e
commit c047ba9
Showing
2 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "ownCloud Action Extension/InfoPlist.xcstrings" | ||
|
@@ -35,6 +35,30 @@ jobs: | |
beautifyJSON "ownCloud/Resources/Localizable.xcstrings" | ||
beautifyJSON "ownCloudAppFramework/Resources/Localizable.xcstrings" | ||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install -y clang libpython2.7 libpython2.7-dev | ||
|
||
- name: Download Swift | ||
run: curl -o /tmp/swift-6.0.2-RELEASE-ubuntu20.04.tar.gz https://download.swift.org/swift-6.0.2-release/ubuntu2004/swift-6.0.2-RELEASE/swift-6.0.2-RELEASE-ubuntu20.04.tar.gz | ||
|
||
- name: Extract Swift | ||
run: tar -xzf /tmp/swift-6.0.2-RELEASE-ubuntu20.04.tar.gz | ||
|
||
- name: Move Swift to /usr/share | ||
run: sudo mv swift-6.0.2-RELEASE-ubuntu20.04 /usr/share/swift | ||
|
||
- name: Add Swift to PATH | ||
run: echo "export PATH=/usr/share/swift/usr/bin:\$PATH" >> $GITHUB_ENV | ||
|
||
- name: Verify Swift installation | ||
run: swift -v | ||
|
||
- name: Compile Swift file | ||
run: swiftc tools/normalizestrings/main.swift -o /tmp/ocstringstool | ||
|
||
- name: Run compiled Swift program | ||
run: /tmp/ocstringstool normalize "ownCloud/Resources" "ownCloud Action Extension" "ownCloud File Provider" "ownCloud Share Extension" "ownCloudAppFramework/Resources" | ||
|
||
- uses: GuillaumeFalourd/[email protected] | ||
with: | ||
email: [email protected] | ||
|
This file contains 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