Skills Development Lokalise Multi Environment Setup

Lokalise Multi Environment Setup

v20260311
lokalise-multi-env-setup
Sets up Lokalise per development, staging, and production environments with isolated API keys, environment-aware secrets, validation, and CI/CD deployment hooks to avoid cross-env leakage.
Get Skill
250 downloads
Overview

Lokalise Multi Env Setup

Overview

Configure Lokalise across development, staging, and production environments with isolated API keys, environment-specific settings, and proper secret management. Each environment gets its own credentials and configuration to prevent cross-environment data leakage.

Prerequisites

  • Separate Lokalise API keys per environment
  • Secret management solution (environment variables, Vault, or cloud secrets)
  • CI/CD pipeline with environment-aware deployment
  • Application with environment detection logic

Instructions

  1. Environment Strategy
  2. Instructions

For full implementation details, load: Read(${CLAUDE_SKILL_DIR}/references/implementation-guide.md)

Error Handling

Issue Cause Solution
Wrong environment Missing NODE_ENV Set environment variable in deployment
Secret not found Wrong secret path Verify secret manager configuration
Cross-env data leak Shared API key Use separate keys per environment
Config validation fail Missing field Add startup validation with Zod schema

Examples

Quick Environment Check

const config = getLokaliseConfig();
console.log(`Running in ${config.environment}`);
console.log(`Cache enabled: ${config.cache.enabled}`);

Startup Validation

import { z } from "zod";

const configSchema = z.object({
  apiKey: z.string().min(1, "LOKALISE_API_TOKEN is required"),
  environment: z.enum(["development", "staging", "production"]),
  timeout: z.number().positive(),
});

const config = configSchema.parse(getLokaliseConfig());

Resources

Next Steps

For deployment, see lokalise-deploy-integration.

Output

  • Configuration files or code changes applied to the project
  • Validation report confirming correct implementation
  • Summary of changes made and their rationale

See deployment implementation details for output format specifications.

Info
Category Development
Name lokalise-multi-env-setup
Version v20260311
Size 3.12KB
Updated At 2026-03-12
Language