Compare commits

..
Author SHA1 Message Date
dependabot[bot] 8cd7b164fc Bump actions/setup-java from 5 to 6
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 5 to 6.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-09-18 20:09:03 +00:00
loucass003 83941fd38e Clean up crowdin.yml to use env variables 2026-09-18 22:02:52 +02:00
loucass003 64a2484827 Add project_id and CROWDIN_API_TOKEN fallback to Crowdin sync 2026-09-18 21:58:52 +02:00
loucass003 d75417de49 Standardize Crowdin action env mapping 2026-09-18 21:55:43 +02:00
loucass003 51aa13b6c8 Pass crowdin_personal_token and project_id to crowdin action 2026-09-18 21:48:50 +02:00
loucass003 7c202618b3 Remove label argument from translation PR creation to prevent token scope errors 2026-09-18 20:48:00 +02:00
loucass003 e3be80fadc Ignore node_modules, dist, and build stats in subdirectories 2026-09-18 20:04:07 +02:00
loucass003 49d631a2a7 Add dry-run Crowdin testing workflow and draft PR protection 2026-09-18 19:32:40 +02:00
loucass003 0efb1ca808 Configure Crowdin for l10n_main and update translation workflows 2026-09-18 19:27:28 +02:00
Futura c1424c2a23 Update Crowdin configuration file
[ci skip]
2026-09-18 18:54:54 +02:00
6 changed files with 99 additions and 10 deletions

No files matched your search

+3 -3
View File
@@ -93,7 +93,7 @@ jobs:
with:
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: '17'
distribution: 'adopt'
@@ -114,7 +114,7 @@ jobs:
- name: Get tags
run: git fetch --tags origin --recurse-submodules=no --force
- name: Set up JDK 17
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: '17'
distribution: 'adopt'
@@ -261,7 +261,7 @@ jobs:
- name: Get tags
run: git fetch --tags origin --recurse-submodules=no --force
- name: Set up JDK 17
uses: actions/setup-java@v5
uses: actions/setup-java@v6
with:
java-version: '17'
distribution: 'adopt'
+36
View File
@@ -0,0 +1,36 @@
name: Test Crowdin Sync (Dry Run)
on:
workflow_dispatch:
inputs:
dry_run:
description: 'Perform a dry run (logs changes without modifying repository)'
type: boolean
default: true
localization_branch:
description: 'Branch to target for translations'
type: string
default: 'l10n_main'
jobs:
test-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: recursive
- name: Test Crowdin Synchronization
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: ${{ inputs.localization_branch }}
dry_run: ${{ inputs.dry_run }}
create_pull_request: false
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
+3 -2
View File
@@ -3,6 +3,7 @@ on:
push:
branches:
- pontoon
- l10n_main
jobs:
pull_request:
if: ${{ github.repository == 'SlimeVR/SlimeVR-Server' }}
@@ -17,5 +18,5 @@ jobs:
env:
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() { gh pr create "$@" --draft --base main || gh pr edit "$@"; }
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:
+4 -1
View File
@@ -25,7 +25,9 @@
.settings
# Node Stuff
/node_modules
node_modules/
dist/
stats.html
.husky
# kotlin stuff
@@ -33,6 +35,7 @@
# ignore gradle build folder
build/
server/desktop/config/
# created by clangd for index cache
.cache/
+19
View File
@@ -0,0 +1,19 @@
# Crowdin Configuration File
# https://developer.crowdin.com/configuration-file/
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN
files:
- 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