mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-21 17:41:28 -08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83941fd38e | ||
|
|
64a2484827 | ||
|
|
d75417de49 | ||
|
|
51aa13b6c8 | ||
|
|
7c202618b3 | ||
|
|
e3be80fadc | ||
|
|
49d631a2a7 | ||
|
|
0efb1ca808 | ||
|
|
c1424c2a23 |
No files matched your search
@@ -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,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 🥺"
|
||||
@@ -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
@@ -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
@@ -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
|
||||
Reference in new issue
Block a user