Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Downloads Lokalise translation bundles in JSON, XLIFF, or PO formats and extracts them for app integration.
50% 95%+45 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 11 of 22 without it.
Write a `lokalise2` CLI command to download translation files formatted as nested JSON, ensuring dot-separated key names are converted to nested objects upon export into the `./locales` directory.
Passes --export-key-name-as set to key_name_dot_separated.
3 of 3 safety checks passed
Everything on the "Lokalise to app" side: download translated files, manage translations and review status, leverage translation memory, manage contributors and their language access, and handle format differences across JSON, XLIFF, and PO files.
LOKALISE_API_TOKENLOKALISE_PROJECT_ID@lokalise/node-api installed for SDK exampleslokalise2 CLI installed for CLI examplesunzip available for extracting download bundlesSDK — Download and extract:
import { LokaliseApi } from "@lokalise/node-api";
import { execSync } from "node:child_process";
import { mkdirSync } from "node:fs";
const client = new LokaliseApi({ apiKey: process.env.LOKALISE_API_TOKEN! });
const PROJECT_ID = process.env.LOKALISE_PROJECT_ID!;
// Request the download bundle
const download = await client.files().download(PROJECT_ID, {
format: "json",
original_filenames: false,
bundle_structure: "%LANG_ISO%.json", // Output: en.json, fr.json, de.json
filter_langs: ["en", "fr", "de", "es"], // Only these languages
export_empty_as: "base", // Use base language for empty translations
include_tags: ["release-3.0"], // Only keys with this tag
replace_breaks: false,
});
const bundleUrl = download.bundle_url;
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.