Skip to content

Download translations #531

Download translations

Download translations #531

name: Download translations
on:
schedule:
- cron: "0 0 * * *" # every day at midnight
permissions:
contents: write
pull-requests: write
jobs:
download-translations:
name: Download translations
runs-on: ubuntu-latest
permissions:
contents: read # This is required for actions/checkout
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Download onboarding translation keys
uses: localazy/download@v1
with:
read_key: ${{ secrets.LOCALAZY_ONBOARDING_READ_KEY }}
write_key: ${{ secrets.LOCALAZY_ONBOARDING_WRITE_KEY }}
groups: onboarding
- name: Download banking translation keys
uses: localazy/download@v1
with:
read_key: ${{ secrets.LOCALAZY_BANKING_READ_KEY }}
write_key: ${{ secrets.LOCALAZY_BANKING_WRITE_KEY }}
groups: banking
- name: Download payment translation keys
uses: localazy/download@v1
with:
read_key: ${{ secrets.LOCALAZY_PAYMENT_READ_KEY }}
write_key: ${{ secrets.LOCALAZY_PAYMENT_WRITE_KEY }}
groups: payment
- name: Sort locales
run: pnpm sort-locales
- uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.CREATE_PR_TOKEN }}
title: Update translations
branch: update-translations
commit-message: update translations from localazy
body: Update translations