chore(localization): Automatically update language metadata from Tolgee (#1508)

This commit is contained in:
Rémi Marseault 2024-02-07 10:31:31 +01:00 committed by GitHub
parent e54ee20427
commit a220588427
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View file

@ -51,12 +51,17 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Update locales
- name: Update locales data
run: |
curl -H 'X-API-KEY: ${{ secrets.TOLGEE_TOKEN }}' 'https://app.tolgee.io/v2/projects/export' -o locales.zip
unzip -o -d ./src/locales locales.zip
rm locales.zip
- name: Update locales metadata
uses: VueTorrent/tolgee-action@v1
with:
tolgee_secret: ${{ secrets.TOLGEE_TOKEN }}
- name: Build VueTorrent
run: npm run build

View file

@ -32,12 +32,17 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Update locales
- name: Update locales data
run: |
curl -H 'X-API-KEY: ${{ secrets.TOLGEE_TOKEN }}' 'https://app.tolgee.io/v2/projects/export' -o locales.zip
unzip -o -d ./src/locales locales.zip
rm locales.zip
- name: Update locales metadata
uses: VueTorrent/tolgee-action@v1
with:
tolgee_secret: ${{ secrets.TOLGEE_TOKEN }}
- name: Lint
run: npm run lint