Lokalise Migration Deep DiveSAFE
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Overview
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
4f83675ca38aOBSERVED · 2026-10-09Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| claude-code | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
--- name: lokalise-migration-deep-dive description: 'Execute major migration to Lokalise from other TMS platforms with data migration strategies. Use when migrating to Lokalise from competitors, performing data imports, or re-platforming existing translation management to Lokalise. Trigger with phrases like "migrate to lokalise", "lokalise migration", "switch to lokalise", "lokalise import", "lokalise replatform". ' allowed-tools: Read, Write, Edit, Bash(npm:*), Bash(lokalise2:*), Bash(curl:*), Bash(jq:*), Bash(node:*), Bash(python3:*), Bash(mkdir:*), Grep version: 1.14.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - lokalise - migration compatibility: Designed for Claude Code --- # Lokalise Migration Deep Dive ## Current State !`lokalise2 --version 2>/dev/null || echo 'CLI not installed'` !`npm list @lokalise/node-api 2>/dev/null | grep lokalise || echo 'SDK not installed'` !`node --version 2>/dev/null || echo 'Node.js not available'` ## Overview Migrate translations from another TMS (Crowdin, Phrase, POEditor) into Lokalise — export from the source platform, transform key names and variable syntax to match Lokalise conventions, bulk upload via API, validate translation coverage, and handle key conflicts with format-aware tooling. ## Prerequisites - Admin or export access to the source TMS platform - Lokalise account with a plan that supports the target key count (Free: 500 keys, Pro: unlimited) - `LOKALISE_API_TOKEN` environment variable set (read-write token) - `lokalise2` CLI or `@lokalise/node-api` SDK installed - `jq` for JSON manipulation during transformation ## Instructions ### Step 1: Export from Source Platform Each TMS has its own export format. Export to a Lokalise-compatible format when possible (JSON, XLIFF, or the platform's native format). **From Crowdin:** ```bash set -euo pipefail # Export all translations as JSON (flat key-value structure) # Use Crowdin CLI or API to download curl -X POST "https://api.crowdin.com/api/v2/projects/${CROWDIN_PROJECT_ID}/translations/builds" \ -H "Authorization: Bearer ${CROWDIN_TOKEN}" \ -H "Content-Type: application/json" \ -d '{"targetLanguageIds": [], "exportApprovedOnly": false}' # Download the build when ready (poll build status first) curl -X GET "https://api.crowdin.com/api/v2/projects/${CROWDIN_PROJECT_ID}/translations/builds/${BUILD_ID}/download" \ -H "Authorization: Bearer ${CROWDIN_TOKEN}" -o crowdin-export.zip unzip crowdin-export.zip -d crowdin-export/ echo "Exported $(find crowdin-export/ -name '*.json' | wc -l) translation files" ``` **From Phrase (formerly PhraseApp):** ```bash set -euo pipefail # Export all locales as JSON for LOCALE in en fr de es ja; do curl -X GET "https://api.phrase.com/v2/projects/${PHRASE_PROJECT_ID}/locales/${LOCALE}/download?file_format=simple_json" \ -H "Authorization: token ${PHRASE_TOKEN}" \ -o "phrase-export/${LOCALE}.json" sleep 0.5 done echo "Exported locales: $(ls phrase-export/)" ``` **From POEditor:** ```bash set -euo pipefail # Export via POEditor API (returns a download URL) EXPORT_URL=$(curl -s -X POST "https://api.poeditor.com/v2/projects/export" \ -d "api_token=${POEDITOR_TOKEN}&id=${POEDITOR_PROJECT_ID}&language=en&type=json" \ | jq -r '.result.url') curl -s "$EXPORT_URL" -o poeditor-export/en.json echo "Downloaded $(wc -c < poeditor-export/en.json) bytes" ``` ### Step 2: Transform Keys and Variable Syntax Different TMS platforms use different interpolation syntax. Lokalise supports multiple formats, but consistency matters. ```javascript // transform-keys.mjs — Convert source format to Lokalise-compatible JSON import { readFileSync, writeFileSync, readdirSync } from 'fs'; const VARIABLE_TRANSFORMS = { // Crowdin ICU: {count} -> %{count} (for Ruby) or keep as {count} (for JS) crowdin: (value) => value, // Crowdin uses ICU by default, Lokalise supports it // Phrase: %{variable} -> {{variable}} (if targeting i18next) phrase: (value) => value.replace(/%\{(\w+)\}/g, '{{$1}}'), // POEditor: {{variable}} -> {variable} (if targeting ICU) poeditor: (value) => value.replace(/\{\{(\w+)\}\}/g, '{$1}'), }; const SOURCE = process.argv[2] || 'crowdin'; // crowdin | phrase | poeditor const INPUT_DIR = process.argv[3] || 'source-export'; const OUTPUT_DIR = process.argv[4] || 'lokalise-import'; const transform = VARIABLE_TRANSFORMS[SOURCE] || ((v) => v); for (const file of readdirSync(INPUT_DIR).filter(f => f.endsWith('.json'))) { const data = JSON.parse(readFileSync(`${INPUT_DIR}/${file}`, 'utf8')); const transformed = {}; // Flatten nested keys with dot notation (Lokalise convention) function flatten(obj, prefix = '') { for (const [key, value] of Object.entries(obj)) { const fullKey = prefix ? `${prefix}.${key}` : key; if (typeof value === 'object' && value !== null && !Array.isArray(value)) { flatten(value, fullKey); } else { transformed[fullKey] = transform(String(value)); } } } flatten(data); writeFileSync(`${OUTPUT_DIR}/${file}`, JSON.stringify(transformed, null, 2)); console.log(`Transformed ${file}: ${Object.keys(transformed).length} keys`); } ``` ```bash set -euo pipefail mkdir -p lokalise-import node transform-keys.mjs crowdin crowdin-export lokalise-import ``` ### Step 3: Create Lokalise Project and Upload ```bash set -euo pipefail # Create a new project for the migration PROJECT=$(curl -s -X POST "https://api.lokalise.com/api2/projects" \ -H "X-Api-Token: ${LOKALISE_API_TOKEN}" \ -H "Content-Type: application/json" \ -d '{ "name": "Migration from Crowdin", "description": "Migrated translations", "base_lang_iso": "en", "languages": [ {"lang_iso": "en"}, {"lang_iso": "fr"}, {"lang_iso": "de"}, {"lang_iso": "es"}, {"lang_iso": "ja"} ] }') PROJECT_ID=$(echo "$PROJECT" | jq -r '.project_id') echo "Created project: ${PROJECT_ID}" ``` ### Step 4: Bulk Upload Translation Fi
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
4f83675ca38afull audit observations/trust-audit/skill/jeremylongshore__lokalise-migration-deep-dive.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-09 | 4f83675ca38a | SAFE | B | 89 | first audit |
Questions
What does the Lokalise Migration Deep Dive skill do?
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Is Lokalise Migration Deep Dive safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Lokalise Migration Deep Dive access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Lokalise Migration Deep Dive work with?
Its documentation mentions claude-code. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (4f83675ca38a), read on 2026-10-09. The repository is watched, and a new audit runs when it changes — this is the first audit.