@remirror/i18n
Supported internationalization and locales for the remirror editor.
Installation
yarn add @remirror/i18n@next
pnpm add @remirror/i18n@next
npm install @remirror/i18n@next
Usage
The following code creates adds an es
translation to your social editor.
import { i18n } from '@remirror/i18n';
import es from '@remirror/i18n/es/messages';
import { SocialEditor } from '@remirror/react-social';
import { es as esPlurals } from 'make-plural/plurals';
i18n.loadLocaleData('es', { plurals: esPlurals });
i18n.load({
es: es.messages,
});
const Editor = () => {
<SocialEditor i18n={i18n} locale='en' />;
};
Credits
This package was bootstrapped with monots.