Configure Crowdin for l10n_main and update translation workflows

This commit is contained in:
loucass003 committed 2026-09-18 19:27:28 +02:00
1 parent c1424c2a23
commit 0efb1ca808
3 files changed
+51 -7

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@ on:
push:
branches:
- pontoon
- l10n_main
jobs:
pull_request:
if: ${{ github.repository == 'SlimeVR/SlimeVR-Server' }}
@@ -18,4 +19,4 @@ jobs:
GH_TOKEN: ${{ secrets.PONTOON_BOT_KEY }}
run: |
gh_pr_up() { gh pr create "$@" --label "Area: Translation" --base main || gh pr edit "$@"; }
gh_pr_up --title "New Pontoon translations" --body "Please don't squash me 🥺"
gh_pr_up --title "New translations" --body "Please don't squash me 🥺"
+34 -4
View File
@@ -1,14 +1,44 @@
# This workflow will rebase `pontoon` with `main` changes, it's for making the
# Pontoon bot not try making commits to main
# This workflow will rebase `l10n_main` and `pontoon` with `main` changes, it's for making the
# translation bots not try making commits to main
name: Rebase pontoon branch to main
name: Rebase translation branches to main
on:
push:
branches:
- main
jobs:
rebase:
rebase-l10n:
if: ${{ github.repository == 'SlimeVR/SlimeVR-Server' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
ref: l10n_main
submodules: recursive
# Get all the git history for rebasing
fetch-depth: 0
- name: Rebase
run: |
git config --local user.name "slimevr-bot"
git config --local user.email '[email protected]'
git fetch origin main
git rebase origin/main
git submodule update
- name: Push rebase
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.PONTOON_BOT_KEY }}
push-branch: "l10n_main"
commit-message: "update"
force-push: "true"
name: "slimevr-bot"
email: "[email protected]"
rebase-pontoon:
if: ${{ github.repository == 'SlimeVR/SlimeVR-Server' }}
runs-on: ubuntu-latest
permissions:
+15 -2
View File
@@ -1,3 +1,16 @@
# Crowdin Configuration File
# https://developer.crowdin.com/configuration-file/
files:
- source: gui/public/i18n/en/translation.ftl
translation: gui/public/i18n/%two_letters_code%/translation.ftl
- source: /gui/app/public/i18n/en/translation.ftl
translation: /gui/app/public/i18n/%locale%/%original_file_name%
languages_mapping:
locale:
zh-CN: zh-Hans
zh-TW: zh-Hant
nb: nb-NO
nb-NO: nb-NO
sv: sv-SE
sv-SE: sv-SE
en-OWO: en-x-owo
owo: en-x-owo