Update SimpleLocalize Translations #390
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |