@acid-tango/lokalise-downloader
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

Lokalise Downloader

GitHub Workflow Status npm MIT License PRs Welcome

Utility for downloading Lokalise translations either using the CLI or programatically

Installation

Install lokalise-downloader as an npm module and save it to your package.json file as a development dependency:

npm install --save-dev @acid-tango/lokalise-downloader

CLI Usage

lokalise-downloader tag1,tag2,tag3 <apiKey> <projectId>

Alternativelly, you can pass the apiKey and projectId through environment variables:

export LOKALISE_API_KEY <apiKey>
export LOKALISE_PROJECT_ID <projectId>
export LOKALISE_PROJECT_TAGS <tags>

Programatic usage

import { downloadLocalesAsJson } from "@acid-tango/lokalise-downloader"

const apiKey = "<apiKey>"
const projectId = "<projectId>"
const tags = ["api", "frontend"]

const translations = await downloadLocalesAsJson(apiKey, projectId, tags)

console.log(translations)

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @acid-tango/lokalise-downloader

Weekly Downloads

20

Version

0.2.1

License

MIT

Unpacked Size

36.9 kB

Total Files

55

Last publish

Collaborators

  • acid-tango