@absoluteinterpreting/translate-ai-react
v0.1.2
Published
Official React components and hooks for ABS Translate AI.
Maintainers
Readme
ABS Translation AI React SDK
Install
npm install @absoluteinterpreting/translate-ai-react @absoluteinterpreting/translate-aiuseAbsoluteTranslation exposes a loading/error-aware wrapper around the
JavaScript SDK. It accepts only a public browser key restricted to the selected
project's verified origin.
AbsoluteLanguageSelector provides a header-ready native dropdown with the
appropriate country-language flags. Pass baseUrl, apiKey and projectId
as well as the selected value handler. Before rendering, it verifies the
project's current SDK access with ABS Translate AI. It deliberately renders
nothing for a pending project, invalid key, revoked SDK service or a project
with no enabled target languages.
Create the public browser key in ABS Translate AI → API keys for the same project used by the component. The portal binds that key to the project's verified website origin; do not substitute a private server key.
Use the same project ID for that project's Widget, Plugin and browser SDK integrations. A different website or application needs its own project ID. Do not put a private server key in React code; use a trusted backend for private server-key operations.
