Skip to content
This repository has been archived by the owner on Feb 24, 2025. It is now read-only.

color/lokalise-actions

Repository files navigation

DEPRECATED

This repository contains code for deprecated, unused GitHub actions that were originally written by Color to sync with Lokalise. We have since switched to new actions provided by Lokalise. See the wiki doc for full details on Color's TMS. This repository is kept for historical reference only.


lokalise-actions

Contributing

Please consult the .tool-verions to make sure that you have the right versions of nodejs installed in order to create a deterministic ncc artifact.

Our CI process will re-generate the ./dist folder if necessary and will do so with the version of nodejs defined in .tool-versions.

Usages

name: Lokalise message upload

on:
  push:
    # only run workflow for pushes to specific branches
    branches:
      - main
    # only run workflow when matching files are changed
    paths:
      - 'src/main/source/messages/*.json'

jobs:
  upload:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: color/lokalise-action@v1
        with:
          # operation to perform (push, pull)
          action: push

          # token with read/write access to the project
          api-token: ${{ secrets.lokalise_token }}

          project-id: <lokalise-project-id>

          format: json

          platform: web

          # stringified JSON object of local language ISO codes to remote
          language-iso-code-mapping: { 'es': 'es', 'zh_Hant': 'zh_TW' }

          source-language: en

          source-language-directory: relative/directory/to/source/messages

          translation-directory: relative/directory/to/download/translations

Generated from the /~https://github.com/actions/typescript-action template.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published