Language Bridge

pull

Fetch translations and write raw JSON to the json-dir.

Fetches translations and writes raw JSON to --json-dir (default .language-bridge/locales), one file per namespace. The raw half of sync.

lb pull --project my-app
lb pull --project my-app --json-dir .language-bridge/locales

Example output

One file per namespace, named <namespace>.json, holding that namespace's translation tree (nested keys stay nested):

common.json
checkout.json
.language-bridge/locales/common.json
{
  "welcome": "Welcome",
  "greeting": "Hi {{name}}",
  "home": {
    "title": "Welcome home"
  }
}

Options

Accepts the common options — notably --json-dir, --locale, --namespace, and --include-drafts.

Follow with lb generate to turn the JSON into a typed .d.ts.

On this page