Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@swan-io/lokalise-sync-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swan-io/lokalise-sync-cli

## Install

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Lokalise Sync CLI

Install

$ yarn add @swan-io/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:

require("dotenv").config();

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.

FAQs

Package last updated on 24 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc