babulfish
v2.0.2
Published
Convenience meta-package re-exporting @babulfish/react.
Readme
babulfish
Permanent unscoped compat package for @babulfish/react.
Its runtime exports and CSS bridge match @babulfish/react exactly. New code should prefer the scoped package, but babulfish is not deprecated and is intended to remain available.
Install
Install this inside an existing React 18 or 19 app:
npm install babulfish react react-dom @huggingface/transformersimport { TranslatorProvider, useTranslator } from "babulfish"
import "babulfish/css"babulfish/css resolves to the same stylesheet as @babulfish/styles/css.
Runtime surface
babulfish re-exports the same runtime names as @babulfish/react:
TranslatorProvideruseTranslatoruseTranslateDOMTranslateButtonTranslateDropdownDEFAULT_LANGUAGES
babulfish re-exports the same runtime surface as @babulfish/react. useTranslator() returns the same enablement-first snapshot shape described in @babulfish/react.
For the actual API, hook fields, provider behavior, model selection, and DOM config semantics, read @babulfish/react. This package exists for import compatibility, not as a separate React API.
