@verbx/localize-client
v0.2.2
Published
VerbX Localize — typed HTTP client for /v1/localize (runtime) and /localize (management).
Readme
@verbx/localize-client
The typed HTTP client for the VerbX Localize backend.
You do not install this directly — the runtime, the CLI and the dashboard depend on it. It is documented here for people building their own integration.
Two surfaces, two credentials
- Runtime API —
/v1/localize/*, authenticated with avx_API key. Batch translate, bundle fetch, language detect. This key ships inside a client bundle, so it is translate-only. - Management API —
/localize/*, authenticated with the SaaS JWT. Projects, strings, glossary, review, analytics, and the GitHub agent. SendsX-Tenant-Id(read from the token'stidclaim when not passed), which the backend requires.
import { RuntimeApiClient, LocalizeManagementClient } from "@verbx/localize-client";
const runtime = new RuntimeApiClient({ apiKey: "vx_…", projectKey: "proj_…", endpoint: "https://…/v1/localize" });
const management = new LocalizeManagementClient({ token: saasJwt, baseUrl: "https://…/localize" });Handles Idempotency-Key on mutations and selects the right auth header per surface.
Docs
License
Proprietary. See LICENSE.md and the VerbX terms of service.
