Files
kan/.github/workflows/translate.yml
Workflow config file is invalid. Please check your config file: yaml: line 22: mapping values are not allowed in this context
2026-02-19 21:19:46 +00:00

37 lines
1.1 KiB
YAML

jobs:
translate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Extract translations
working-directory: apps/web
run: npx @lingui/cli extract
- name: Lingo.dev
uses: lingodotdev/lingo.dev@main
with:
api-key: ${{ secrets.LINGODOTDEV_API_KEY }}
commit-message: chore: update translations
working-directory: apps/web
parallel: true
- name: Compile translations
working-directory: apps/web
run: npx @lingui/cli compile --typescript
- name: Commit compiled translations
run: |
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git config --local user.name "${{ github.actor }}"
git add apps/web/src/locales/*/messages.{js,ts}
git diff --staged --quiet || git commit -m "chore: compile translations"
git push