@remirror/i18n
Advanced tools
Comparing version 1.0.0-next.60 to 1.0.0-pr706
@@ -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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
32537
0
36
504
1
22231
1
49
1
+ Added@lingui/detect-locale@^3.5.0
+ Added@linaria/core@3.0.0-beta.22(transitive)
+ Added@linaria/logger@3.0.0-beta.20(transitive)
+ Added@linaria/utils@3.0.0-beta.20(transitive)
+ Added@lingui/detect-locale@3.17.2(transitive)
+ Added@remirror/core-constants@1.0.0-pr706(transitive)
+ Added@remirror/core-helpers@1.0.0-pr706(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedtype-fest@0.20.2(transitive)
- Removed@linaria/core@3.0.0-beta.13(transitive)
- Removed@remirror/core-constants@1.0.0-next.601.0.2(transitive)
- Removed@remirror/core-helpers@1.0.0-next.601.0.6(transitive)
- Removed@remirror/core-types@1.0.0-next.60(transitive)
- Removed@remirror/pm@1.0.0-next.60(transitive)
- Removed@remirror/types@0.1.1(transitive)
- Removed@types/prosemirror-commands@1.3.0(transitive)
- Removed@types/prosemirror-dropcursor@1.5.0(transitive)
- Removed@types/prosemirror-gapcursor@1.3.0(transitive)
- Removed@types/prosemirror-history@1.3.0(transitive)
- Removed@types/prosemirror-inputrules@1.2.0(transitive)
- Removed@types/prosemirror-keymap@1.2.0(transitive)
- Removed@types/prosemirror-model@1.17.0(transitive)
- Removed@types/prosemirror-schema-list@1.2.0(transitive)
- Removed@types/prosemirror-state@1.4.0(transitive)
- Removed@types/prosemirror-transform@1.5.0(transitive)
- Removed@types/prosemirror-view@1.24.0(transitive)
- Removedescape-string-regexp@4.0.0(transitive)
- Removedorderedmap@2.1.1(transitive)
- Removedprosemirror-commands@1.6.2(transitive)
- Removedprosemirror-dropcursor@1.8.1(transitive)
- Removedprosemirror-gapcursor@1.3.2(transitive)
- Removedprosemirror-history@1.4.1(transitive)
- Removedprosemirror-inputrules@1.4.0(transitive)
- Removedprosemirror-keymap@1.2.2(transitive)
- Removedprosemirror-model@1.24.1(transitive)
- Removedprosemirror-schema-list@1.5.0(transitive)
- Removedprosemirror-state@1.4.3(transitive)
- Removedprosemirror-suggest@1.1.4(transitive)
- Removedprosemirror-tables@1.6.2(transitive)
- Removedprosemirror-transform@1.10.2(transitive)
- Removedprosemirror-view@1.37.1(transitive)
- Removedrope-sequence@1.3.4(transitive)
- Removedtype-fest@0.18.11.4.0(transitive)
- Removedw3c-keyname@2.2.8(transitive)
Updated@babel/runtime@^7.12.13
Updated@lingui/core@^3.5.0