opt: update translation guide

migrate to Crowdin
This commit is contained in:
KOWX712
2025-06-05 04:43:39 +08:00
parent 4806eee8ea
commit f1c600df7a
4 changed files with 65 additions and 17 deletions

View File

@@ -24,10 +24,28 @@ jobs:
fetch-depth: 0
fetch-tags: true
- name: Update translation template
run: |
# Translation template
cp -f module/webui/locales/strings/en.xml module/webui/locales/template.xml
# Commit if found changes
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
# Force push translation template if changed
if git status --porcelain | grep 'module/webui/locales/template.xml'; then
git add module/webui/locales/template.xml
git commit --amend --no-edit
fi
- name: Update dependency
if: github.event_name != 'pull_request'
run: |
# marked.js
curl -Ls https://cdn.jsdelivr.net/npm/marked/marked.min.js > module/webui/scripts/assets/marked.min.js
# OpenSSL
wget -q $(curl -Ls https://api.github.com/repos/KOWX712/openssl-static-build/releases/latest | jq -r '.assets[].browser_download_url') -O openssl.tar.gz
tar -xzf openssl.tar.gz
mv openssl-arm64 module/bin/arm64-v8a/openssl
@@ -50,7 +68,7 @@ jobs:
fi
# Push all commits
git push
git push --force
- name: Extract Module Info
id: extract_info