-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4b929f
commit 8da2df4
Showing
3 changed files
with
85 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: (U) 🧰 Update Language packs | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update--langpackas: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: configure git | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
- name: Setup git-cinnabar 🪛 | ||
run: | | ||
mkdir ~/tools | ||
cd ~/tools | ||
git clone https://github.com/glandium/git-cinnabar.git | ||
cd git-cinnabar | ||
git checkout 0.5.11 | ||
export PATH=~/tools/git-cinnabar:$PATH | ||
cd ~ | ||
git cinnabar download | ||
- name: Update Language packs | ||
run: | | ||
for lang in $(cat ./supported-languages); do | ||
./update-langpack.sh $lang | ||
done | ||
- name: Commit changes | ||
run: | | ||
git add . | ||
git commit -m "[bot] Update Language packs" | ||
git push |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ar | ||
cs | ||
da | ||
de | ||
el | ||
en-GB | ||
fr | ||
hu | ||
id | ||
it | ||
ja | ||
ja-JP-mac | ||
ko | ||
lt | ||
nl | ||
nn-NO | ||
pl | ||
pt-BR | ||
pt-PT | ||
ru | ||
sv-SE | ||
th | ||
tr | ||
uk | ||
vi | ||
zh-CN | ||
zh-TW |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
langId=$1 | ||
currentDir=$(pwd) | ||
|
||
echo "Updating language pack for $lang" | ||
|
||
cd ./$langId | ||
|
||
if [ ! -d .git ]; then | ||
git init | ||
fi | ||
|
||
git remote add origin hg://hg.mozilla.org/l10n-central/$langId | ||
git pull | ||
|
||
cd $currentDir | ||
|
||
echo "Update complete for $lang" |