lokalise-sync-cli

1.0.0 • Public • Published

Lokalise Sync CLI

Install

$ yarn add --dev lokalise-sync-cli

Getting started

First, provide a LOKALISE_API_KEY environment variable, containing your Lokalise API Key.

Create a lokalise.config.js file at the root of your project:

module.exports = [
  {
    name: "your-app-name",
    id: "your-app-lokalise-id",
    defaultLocale: "en",
    paths: {
      src: "/your/app/absolute/path",
      locales: "/your/app/locales/absolute/path,
    },
  },
]

Usage

lokalise sync

$ lokalise sync

Syncs your projects (pulls and pushes).

lokalise pull

$ lokalise pull

Pulls up to date translations from lokalise.

lokalise push

$ lokalise push

Pushes translations to lokalise.

lokalise clean

$ lokalise clean

Removes keys that aren't in the reference locale anymore.

lokalise lint

$ lokalise lint

Checks that translations are in the correct format.

lokalise find-unused

$ lokalise find-unused

Logs values that aren't used in your projects.

lokalise remove-unused

$ lokalise remove-unused

Removes values from your translations files if they aren't used in your projects.

/lokalise-sync-cli/

    Package Sidebar

    Install

    npm i lokalise-sync-cli

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    17.1 kB

    Total Files

    10

    Last publish

    Collaborators

    • swan-io