An open API service indexing awesome lists of open source software.

https://github.com/simplelocalize/upload

Upload translations files
https://github.com/simplelocalize/upload

actions cli easy-localization github-actions github-actions-i18n github-actions-l10n i18n l10n localization-cli localization-tool react-localization translation-management upload-translations

Last synced: 7 months ago
JSON representation

Upload translations files

Awesome Lists containing this project

README

          

# Upload translation files

This Github Action uses [official SimpleLocalize CLI](https://github.com/simplelocalize/simplelocalize-cli).

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

## Usage

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Upload translations
uses: simplelocalize/upload@v2.1
with:
apiKey:
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
```