New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@remirror/i18n

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remirror/i18n

Supported internationalization and locales for the remirror editor.

0.0.0-pr706.26
Version published
Maintainers
1
Created

@remirror/i18n

Supported internationalization and locales for the remirror editor.

Version Weekly Downloads Bundled size Typed Codebase MIT License

Installation

# yarn
yarn add @remirror/i18n

# pnpm
pnpm add @remirror/i18n

# npm
npm install @remirror/i18n

Usage

The following code creates adds an en translation to your social editor.

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 = () => {
  <SocialEditor i18n={i18n} locale='en' />;
};

FAQs

Package last updated on 10 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts