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

@intl-schematic/plugin-defaults

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intl-schematic/plugin-defaults - npm Package Compare versions

Comparing version 1.0.0-rc.1 to 1.0.0-rc.2

2

package.json
{
"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.
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