@intl-schematic/plugin-defaults
Advanced tools
Comparing version 1.0.0-rc.1 to 1.0.0-rc.2
{ | ||
"name": "@intl-schematic/plugin-defaults", | ||
"version": "1.0.0-rc.1", | ||
"version": "1.0.0-rc.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -7,7 +7,7 @@ # `@intl-schematic/plugin-defaults` | ||
- [`@intl-schematic/plugin-arrays`](../arrays/) | ||
- [`@intl-schematic/plugin-arrays`](/packages/plugins/arrays/) | ||
- use plain functions directly in translation documents with type-checked parameters | ||
- [`@intl-schematic/plugin-locale`](../locale/) | ||
- [`@intl-schematic/plugin-locale`](/packages/plugins/locale/) | ||
- provider plugin, allows other plugins to use the provided `Intl.Locale` instance | ||
- [`@intl-schematic/plugin-processors`](../processors/) | ||
- [`@intl-schematic/plugin-processors`](/packages/plugins/processors/) | ||
- apply custom and default processors to format the user inputs | ||
@@ -21,3 +21,3 @@ | ||
import { createTranslator } from 'intl-schematic'; | ||
import { defaultPlugins, defaultProcessors } from '@intl-schematic/plugin-defaults'; | ||
import { defaultPlugins } from '@intl-schematic/plugin-defaults'; | ||
@@ -27,8 +27,5 @@ const getLocale = () => new Intl.Locale(navigator.language); | ||
// Notice the plugins array parameter | ||
const t = createTranslator(getDocument, defaultPlugins( | ||
getLocale | ||
defaultProcessors | ||
)); | ||
const t = createTranslator(getDocument, defaultPlugins(getLocale)); | ||
``` | ||
Then use according to the instructions of included plugins. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11252
29