Supported internationalization and locales for the remirror editor.
npm install @remirror/i18n> Supported internationalization and locales for the remirror editor.
[![Version][version]][npm] [![Weekly Downloads][downloads-badge]][npm] [![Bundled size][size-badge]][size] [![Typed Codebase][typescript]](#) [![MIT License][license]](#)
[version]: https://flat.badgen.net/npm/v/@remirror/i18n
[npm]: https://npmjs.com/package/@remirror/i18n
[license]: https://flat.badgen.net/badge/license/MIT/purple
[size]: https://bundlephobia.com/result?p=@remirror/i18n
[size-badge]: https://flat.badgen.net/bundlephobia/minzip/@remirror/i18n
[typescript]: https://flat.badgen.net/badge/icon/TypeScript?icon=typescript&label
[downloads-badge]: https://badgen.net/npm/dw/@remirror/i18n/red?icon=npm
``bashyarn
yarn add @remirror/i18n
Usage
The following code creates adds an
en translation to your social editor.`tsx
import { en as enPlurals } from 'make-plural/plurals';
import React from 'react';
import { i18n } from '@remirror/i18n';
import en from '@remirror/i18n/en/messages';
import { SocialEditor } from '@remirror/react';i18n.loadLocaleData('en', { plurals: anPlurals });
i18n.load({
en: en.messages,
});
const Editor = () => {
;
};
``