GitHub Action

Download translation files from locize in your CI/CD workflow.
By using our GitHub Action, you can download your translations from locize in your CI/CD pipeline.
Find all relevant information on the in the official GitHub Marketplace.
uses: locize/download@v1
with:
project-id: ${{ secrets.LOCIZE_PROJECT_ID }}
The GitHub action will only download the translations in the CI/CD container used in your workflow. If you want the translations to be stored back to your repository, you need a different action that will do something like "git add .", "git commit", "git push", etc… Something like https://github.com/marketplace/actions/github-commit-push

example workflow

jobs:
my_job:
runs-on: ubuntu-latest
name: download and push
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download translations
uses: locize/download@v1
with:
project-id: ${{ secrets.LOCIZE_PROJECT_ID }}
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Last modified 2mo ago