Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 757 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 757 Bytes

Upload translation files

This Github Action uses official SimpleLocalize CLI.

Learn more: https://simplelocalize.io/docs/integrations/github-actions/

Usage

name: 'My project'
on:
  push:
    branches: [ main, master ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Upload translations
        uses: simplelocalize/[email protected]
        with:
          apiKey: <YOUR_API_KEY>
          uploadPath: ./{lang}/translations.json
          uploadFormat: single-language-json
          uploadOptions: "PUBLISH_AFTER_IMPORT,REPLACE_TRANSLATION_IF_FOUND" # optional
          languageKey: en # optional, it accepts only one language key