@remirror/i18n
Advanced tools
Comparing version 1.0.0-next.35 to 1.0.0-next.37
# @remirror/i18n | ||
## 1.0.0-next.37 | ||
> 2020-09-14 | ||
### Patch Changes | ||
- Updated dependencies [[`5a3dd95f`](https://github.com/remirror/remirror/commit/5a3dd95f11edee885c1d07b1ece8413d830b3405)]: | ||
- @remirror/pm@1.0.0-next.37 | ||
- @remirror/core-helpers@1.0.0-next.37 | ||
## 1.0.0-next.35 | ||
@@ -4,0 +14,0 @@ |
{ | ||
"name": "@remirror/i18n", | ||
"version": "1.0.0-next.35", | ||
"version": "1.0.0-next.37", | ||
"description": "Supported internationalization and locales for the remirror editor.", | ||
@@ -31,10 +31,10 @@ "keywords": [ | ||
"@lingui/core": "^3.0.0-13", | ||
"@remirror/core-helpers": "1.0.0-next.35", | ||
"@remirror/core-helpers": "1.0.0-next.37", | ||
"make-plural": "^6.2.1" | ||
}, | ||
"devDependencies": { | ||
"@remirror/pm": "1.0.0-next.35" | ||
"@remirror/pm": "1.0.0-next.37" | ||
}, | ||
"peerDependencies": { | ||
"@remirror/pm": "1.0.0-next.35" | ||
"@remirror/pm": "1.0.0-next.37" | ||
}, | ||
@@ -41,0 +41,0 @@ "publishConfig": { |
@@ -11,3 +11,3 @@ # @remirror/i18n | ||
[size]: https://bundlephobia.com/result?p=@remirror/i18n@next | ||
[size-badge]: https://flat.badgen.net/bundlephobia/minzip/@remirror/i18n | ||
[size-badge]: https://flat.badgen.net/bundlephobia/minzip/@remirror/i18n@next | ||
[typescript]: https://flat.badgen.net/badge/icon/TypeScript?icon=typescript&label | ||
@@ -31,6 +31,6 @@ [downloads-badge]: https://badgen.net/npm/dw/@remirror/i18n/red?icon=npm | ||
The following code creates adds an `es` translation to your social editor. | ||
The following code creates adds an `en` translation to your social editor. | ||
```tsx | ||
import { es as esPlurals } from 'make-plural/plurals'; | ||
import { en as enPlurals } from 'make-plural/plurals'; | ||
import React from 'react'; | ||
@@ -40,8 +40,8 @@ import { SocialEditor } from 'remirror/react/social'; | ||
import { i18n } from '@remirror/i18n'; | ||
import es from '@remirror/i18n/es/messages'; | ||
import en from '@remirror/i18n/en/messages'; | ||
i18n.loadLocaleData('es', { plurals: esPlurals }); | ||
i18n.loadLocaleData('en', { plurals: anPlurals }); | ||
i18n.load({ | ||
es: es.messages, | ||
en: en.messages, | ||
}); | ||
@@ -48,0 +48,0 @@ |
14427
+ Added@remirror/core-helpers@1.0.0-next.37(transitive)
+ Added@remirror/core-types@1.0.0-next.37(transitive)
+ Added@remirror/pm@1.0.0-next.37(transitive)
- Removed@remirror/core-helpers@1.0.0-next.35(transitive)
- Removed@remirror/core-types@1.0.0-next.35(transitive)
- Removed@remirror/pm@1.0.0-next.35(transitive)