Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remirror/i18n

Package Overview
Dependencies
Maintainers
1
Versions
235
Alerts
File Explorer

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.

  • 1.0.0-next.40
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24K
decreased by-15.99%
Maintainers
1
Weekly downloads
 
Created
Source

@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@next

# pnpm
pnpm add @remirror/i18n@next

# npm
npm install @remirror/i18n@next

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 { SocialEditor } from 'remirror/react/social';

import { i18n } from '@remirror/i18n';
import en from '@remirror/i18n/en/messages';

i18n.loadLocaleData('en', { plurals: anPlurals });

i18n.load({
  en: en.messages,
});

const Editor = () => {
  <SocialEditor i18n={i18n} locale='en' />;
};

Keywords

FAQs

Package last updated on 24 Sep 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc