Skip to content

simplelocalize/upload

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

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