Skip to content

Commit 6cc44eb

Browse files
committed
ci: Add Crowdin translation synchronization workflow to automate source uploads and translation downloads.
1 parent c3538dd commit 6cc44eb

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/crowdin-sync.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,14 @@ jobs:
5757

5858
- name: Normalize ARB locales
5959
run: |
60-
set -x
61-
git status
62-
ls -R lib/l10n
6360
for file in lib/l10n/app_*.arb; do
6461
locale=$(basename "$file" .arb | sed 's/app_//')
6562
# Standardize @@locale to match the filename (e.g., es-ES -> es)
6663
sed -i "s/\"@@locale\": \"[^\"]*\"/\"@@locale\": \"$locale\"/g" "$file"
6764
done
68-
git status
65+
66+
- name: Fix file permissions
67+
run: sudo chown -R $USER:$USER .
6968

7069
- name: Create Pull Request
7170
uses: peter-evans/create-pull-request@v6

0 commit comments

Comments
 (0)