@verbx/localize-angular
v0.2.0
Published
VerbX Localize — Angular SDK: provideVerbX, VerbXService with signals, verbxT pipe.
Readme
@verbx/localize-angular
The Angular SDK for VerbX Localize — a provider, a service backed by signals, and a pipe, so the text your users read is translated with no translation files and no keys to invent. Angular 16+.
npm install @verbx/localize-angular// app.config.ts
import { provideVerbX } from "@verbx/localize-angular";
export const appConfig = {
providers: [
provideVerbX({
apiKey: "vx_…",
projectKey: "proj_…",
supportedLocales: ["en", "es", "hi"],
}),
],
};<!-- the English string IS the key -->
<h1>{{ "Your cart" | verbxT }}</h1>
<!-- with context, so "Apply" on a coupon differs from "Apply" on a job posting -->
<button>{{ "Apply" | verbxT: { context: { componentType: "Button", parentLabel: "Coupon code" } } }}</button>What you get
provideVerbX(config)— registers the SDK.apiKeyandprojectKeyare required.verbxTpipe — translates a source string, with an optional context argument.VerbXService— the current locale and translations as signals, plussetLocale(locale)andt(source, options?)for use in component code.
The pipe and service never throw; a backend problem shows the source language rather than an error.
Docs
Full guide, the CLI, and the GitHub agent: localize.verbxeco.com — the Docs section is readable without an account.
License
Proprietary. See LICENSE.md and the VerbX terms of service.
