Package Exports
- @remirror/i18n
- @remirror/i18n/dist/i18n.browser.cjs.js
- @remirror/i18n/dist/i18n.browser.esm.js
- @remirror/i18n/dist/i18n.cjs.js
- @remirror/i18n/dist/i18n.esm.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@remirror/i18n) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@remirror/i18n
Supported internationalization and locales for the remirror editor.
Installation
# yarn
yarn add @remirror/i18n@next
# pnpm
pnpm add @remirror/i18n@next
# npm
npm install @remirror/i18n@nextUsage
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' />;
};