GitHub Actions

Last modified: January 05, 2022Author: Jakub Pomykała

Quick Start

Learn how to upload and download translations from your code on GitHub. This guide will show you how to configure GitHub Actions pipeline, import translations from repository file and download translated version to your project files.

Download translations action

Download translations file from SimpleLocalize i18n Editor to temporary action files.

name: 'Download translations'
on:
  push:
    branches: [ main ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - name: Download translations
        uses: simplelocalize/[email protected]
        with:
          apiKey: <YOUR_API_KEY>
          downloadPath: ./output-sample.json
          downloadFormat: multi-language-json

Upload translations action

Upload translations file from repository to SimpleLocalize using SimpleLocalize Upload Action.

name: 'Upload translations'
on:
  push:
    branches: [ main ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - name: Upload translations
        uses: simplelocalize/[email protected]
        with:
          apiKey: <YOUR_API_KEY>
          uploadPath: ./input-sample.json
          uploadFormat: multi-language-json

Resources