Skip to content

Update SimpleLocalize Translations #155

Update SimpleLocalize Translations

Update SimpleLocalize Translations #155

name: Update SimpleLocalize Translations
on:
schedule:
- cron: '51 7 * * *'
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
update-translations:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_FOR_RELEASE_TAGGER }}
- name: "Download translations"
uses: simplelocalize/[email protected]
with:
apiKey: ${{ secrets.SIMPLELOCALIZE_API_KEY }}
downloadPath: "./src/locales/{lang}.json"
downloadFormat: "single-language-json"
downloadOptions: "WRITE_NESTED,ONLY_TRANSLATED"
- name: "Commit translations"
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "chore(i18n): update translations from SimpleLocalize"
add: "src/locales"
push: true