Files
moeka-project/.github/workflows/upload-crowdin-glossary.yml
T
nanakura dc26878386
CI / Lint (push) Canceled after 0s
CI / Build Test (stage-web) (push) Canceled after 0s
CI / Build Test (ui-loading-screens) (push) Canceled after 0s
CI / Build Test (ui-transitions) (push) Canceled after 0s
CI / Unit Test (push) Canceled after 0s
CI / Type Check (push) Canceled after 0s
CI / Check Provenance (push) Canceled after 0s
Sync Labels / sync-labels (push) Successful in 1m43s
chore: prune unused apps and services for the moeka fork
- Remove stage-tamagotchi, stage-pocket, server, and engine workspaces with their workflows, addons, and docs
- Switch the toolchain from pnpm to bun, replace lockfiles with bun.lock
- Rewrite remaining product references to Moeka
2026-09-14 16:40:49 +07:00

48 lines
1.6 KiB
YAML

name: Upload Crowdin Glossary
on:
workflow_dispatch:
permissions:
contents: read
jobs:
upload-glossary:
runs-on: ubuntu-latest
steps:
# An empty ID fails inside the CLI with an unclear message. Fail here instead.
- name: Check Glossary ID
run: |
if [ -z "${{ vars.CROWDIN_GLOSSARY_ID }}" ]; then
echo "::error::Set the CROWDIN_GLOSSARY_ID repository variable. To find the ID, run: crowdin glossary list"
exit 1
fi
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 26.7.0
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.2
- run: bun install --frozen-lockfile
# The TBX file is generated, never committed, so it cannot drift from terms.yaml.
# The schema also rejects a malformed entry here, before anything reaches Crowdin.
- name: Generate TBX File
run: bun run --filter @proj-airi/i18n glossary:build
# NOTICE: Crowdin does not document whether an import merges into the existing
# concepts or adds duplicates beside them, and a merge cannot be undone. This
# workflow therefore runs on demand only. After each run, compare the concept count
# in Crowdin with the number printed above. See https://support.crowdin.com/glossary/
- name: Upload Glossary
uses: crowdin/github-action@v2
with:
command: glossary upload
command_args: packages/i18n/glossary/glossary.tbx --id=${{ vars.CROWDIN_GLOSSARY_ID }}
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}