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 - npm Package Compare versions

Comparing version 1.0.0-next.60 to 1.0.0-pr706

dist/declarations/src/en/messages.d.ts

11

dist/declarations/src/en/index.d.ts

@@ -1,10 +0,1 @@

import type { Messages } from '@lingui/core';
declare type EnMessages = Record<'user.mention.avatar.alt', Messages[string]>;
export interface EnLocale {
/**
* The messages available for the `en` locale.
*/
messages: EnMessages;
}
export declare const en: EnLocale;
export default en;
export * from './messages';
import { i18n } from '@lingui/core';
export type { I18n, AllLocaleData, AllMessages, Locale, LocaleData, Locales, MessageDescriptor, Messages, } from '@lingui/core';
export { setupI18n, formats } from '@lingui/core';
export type { AllLocaleData, AllMessages, I18n, Locale, LocaleData, Locales, MessageDescriptor, Messages, } from '@lingui/core';
export { formats, setupI18n } from '@lingui/core';
export { i18n };
/**
* Detect the locale that is being
*/
export declare function detectLocale(key?: string, fallback?: string): string;
{
"main": "dist/i18n.cjs.js",
"module": "dist/i18n.esm.js",
"main": "dist/remirror-i18n-en.cjs.js",
"module": "dist/remirror-i18n-en.esm.js",
"browser": {
"./dist/i18n.cjs.js": "./dist/i18n.browser.cjs.js",
"./dist/i18n.esm.js": "./dist/i18n.browser.esm.js"
"./dist/remirror-i18n-en.cjs.js": "./dist/remirror-i18n-en.browser.cjs.js",
"./dist/remirror-i18n-en.esm.js": "./dist/remirror-i18n-en.browser.esm.js"
},
"types": "dist/i18n.cjs.d.ts",
"preconstruct": {
"source": "../src/en"
}
"types": "dist/remirror-i18n-en.cjs.d.ts"
}
{
"name": "@remirror/i18n",
"version": "1.0.0-next.60",
"version": "1.0.0-pr706",
"description": "Supported internationalization and locales for the remirror editor.",

@@ -9,4 +9,4 @@ "keywords": [

],
"homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/@remirror/i18n",
"repository": "https://github.com/remirror/remirror/tree/HEAD/packages/@remirror/i18n",
"homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/remirror__i18n",
"repository": "https://github.com/remirror/remirror/tree/HEAD/packages/remirror__i18n",
"license": "MIT",

@@ -17,9 +17,34 @@ "contributors": [

"sideEffects": false,
"main": "dist/i18n.cjs.js",
"module": "dist/i18n.esm.js",
"exports": {
".": {
"import": "./dist/remirror-i18n.esm.js",
"require": "./dist/remirror-i18n.cjs.js",
"browser": "./dist/remirror-i18n.browser.esm.js",
"types": "./dist/remirror-i18n.cjs.d.ts",
"default": "./dist/remirror-i18n.esm.js"
},
"./en": {
"import": "./en/dist/remirror-i18n-en.esm.js",
"require": "./en/dist/remirror-i18n-en.cjs.js",
"browser": "./en/dist/remirror-i18n.browser.esm.js",
"types": "./en/dist/remirror-i18n-en.cjs.d.ts",
"default": "./en/dist/remirror-i18n-en.esm.js"
},
"./package.json": "./package.json",
"./plurals": {
"import": "./plurals/dist/remirror-i18n-plurals.esm.js",
"require": "./plurals/dist/remirror-i18n-plurals.cjs.js",
"browser": "./plurals/dist/remirror-i18n.browser.esm.js",
"types": "./plurals/dist/remirror-i18n-plurals.cjs.d.ts",
"default": "./plurals/dist/remirror-i18n-plurals.esm.js"
},
"./types/*": "./dist/declarations/src/*.d.ts"
},
"main": "dist/remirror-i18n.cjs.js",
"module": "dist/remirror-i18n.esm.js",
"browser": {
"./dist/i18n.cjs.js": "./dist/i18n.browser.cjs.js",
"./dist/i18n.esm.js": "./dist/i18n.browser.esm.js"
"./dist/remirror-i18n.cjs.js": "./dist/remirror-i18n.browser.cjs.js",
"./dist/remirror-i18n.esm.js": "./dist/remirror-i18n.browser.esm.js"
},
"types": "dist/i18n.cjs.d.ts",
"types": "dist/remirror-i18n.cjs.d.ts",
"files": [

@@ -31,17 +56,12 @@ "dist",

"dependencies": {
"@babel/runtime": "^7.12.0",
"@lingui/core": "^3.0.3",
"@remirror/core-helpers": "1.0.0-next.60",
"@babel/runtime": "^7.12.13",
"@lingui/core": "^3.5.0",
"@lingui/detect-locale": "^3.5.0",
"@remirror/core-helpers": "1.0.0-pr706",
"make-plural": "^6.2.1"
},
"devDependencies": {
"@remirror/pm": "1.0.0-next.60"
},
"peerDependencies": {
"@remirror/pm": "1.0.0-next.60"
},
"publishConfig": {
"access": "public"
},
"meta": {
"@remirror": {
"sizeLimit": "50 KB"

@@ -51,7 +71,8 @@ },

"entrypoints": [
".",
"plurals",
"en"
"index.ts",
"plurals.ts",
"en/index.ts"
]
}
},
"rn:dev": "src/index.ts"
}
{
"main": "dist/i18n.cjs.js",
"module": "dist/i18n.esm.js",
"main": "dist/remirror-i18n-plurals.cjs.js",
"module": "dist/remirror-i18n-plurals.esm.js",
"browser": {
"./dist/i18n.cjs.js": "./dist/i18n.browser.cjs.js",
"./dist/i18n.esm.js": "./dist/i18n.browser.esm.js"
"./dist/remirror-i18n-plurals.cjs.js": "./dist/remirror-i18n-plurals.browser.cjs.js",
"./dist/remirror-i18n-plurals.esm.js": "./dist/remirror-i18n-plurals.browser.esm.js"
},
"types": "dist/i18n.cjs.d.ts",
"preconstruct": {
"source": "../src/plurals"
}
"types": "dist/remirror-i18n-plurals.cjs.d.ts"
}

@@ -10,4 +10,4 @@ # @remirror/i18n

[license]: https://flat.badgen.net/badge/license/MIT/purple
[size]: https://bundlephobia.com/result?p=@remirror/i18n@next
[size-badge]: https://flat.badgen.net/bundlephobia/minzip/@remirror/i18n@next
[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

@@ -20,9 +20,9 @@ [downloads-badge]: https://badgen.net/npm/dw/@remirror/i18n/red?icon=npm

# yarn
yarn add @remirror/i18n@next
yarn add @remirror/i18n
# pnpm
pnpm add @remirror/i18n@next
pnpm add @remirror/i18n
# npm
npm install @remirror/i18n@next
npm install @remirror/i18n
```

@@ -37,6 +37,5 @@

import React from 'react';
import { SocialEditor } from 'remirror/react/social';
import { i18n } from '@remirror/i18n';
import en from '@remirror/i18n/en/messages';
import { SocialEditor } from '@remirror/react';

@@ -43,0 +42,0 @@ i18n.loadLocaleData('en', { plurals: anPlurals });

Sorry, the diff of this file is not supported yet

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