NeoIQ Localize

CLI

NeoIQ Localize provides a CLI to help you translate your application.


Commands Overview

Translate

The translate command is used to translate your application.

npx @neoiq/localize@latest translate

Init

The init command is used to initialize a new NeoIQ Localize project.

npx @neoiq/localize@latest init

Auth

The auth command is used to authenticate with NeoIQ Localize.

npx @neoiq/localize@latest auth

Sync

The sync command is used to sync your application with NeoIQ Localize.

npx @neoiq/localize@latest sync

Locale Add

The locale command is used to manage your application's locales.

npx @neoiq/localize@latest locale add pt,fr

Locale Remove

The locale remove command is used to remove a locale from your application.

npx @neoiq/localize@latest locale remove pt,fr

Overrides

The overrides command is used to manage translation overrides in your application saved in localize.neoiq.dev. Overrides allow you to customize specific translations from the NeoIQ Localize Dashboard.

The overrides pull command is used to pull the latest overrides from the NeoIQ Localize Dashboard

npx @neoiq/localize@latest overrides pull

Overrides for source locale

Sometimes you may want to get overrides for the source locale. For example, as a developer you might add translations in en.json but want to have spell checks, overrides and maintain consistent tone with other languages. You can enable this by adding your source locale to the target locales as follows:

neoiq-localize.json
{
  "locale": {
    "source": "en",
    "targets": [
      "sv",
      "en" <- Add your source locale here
    ]
  },
  "files": {
    "json": {
      "include": [
        "src/locales/[locale]/*.json"
      ]
    }
  }
}

Delete translations

The translations delete command is used to delete all target translation files and remote translations from your project. This is useful when you want to start fresh or remove all translations.

npx @neoiq/localize@latest translations delete

How is this guide?

Edit on GitHub

Last updated on

On this page