i18next-http-backend to load translations at runtime — no rebuild required when translations update.
Setup
Create an API token
Generate a read API token in your project settings at lazylocales.com, or via the API:
Query parameters
The locale endpoint supports optional query parameters:| Parameter | Type | Description |
|---|---|---|
format | string | flat or nested — controls the JSON structure |
fallback | string | Locale code to use for missing keys (e.g. en) |
version | number | Pin to a specific source file version |
Example with fallback
Caching
The locale endpoint returns caching headers:Cache-Control: public, max-age=300, stale-while-revalidate=3600ETag— hash for cache validation