@localive/adapter-react-intl
v0.1.4
Published
Connect Localive to react-intl and fix copy without digging through message files.
Maintainers
Readme
@localive/adapter-react-intl
Connect Localive to react-intl and fix copy without digging through message files.
Part of Localive, live in-context i18n editing for React, Vue, Angular, and Svelte.
Install
npm install @localive/adapter-react-intl react-intlRequires the peer dependencies react-intl (>=3) and @localive/core.
Usage
import { withReactIntl } from '@localive/adapter-react-intl';
import { IntlProvider } from 'react-intl';
// Pass the intl shape — locale, messages, and optional onLocaleChange/setLocale
const adapter = withReactIntl({
locale: 'en',
messages: { en: { 'app.title': 'Hello' }, fr: { 'app.title': 'Bonjour' } },
});See the full documentation at https://localive.vercel.app/concepts/adapters/.
License
MIT © Localive, see LICENSE.
