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

@vocab/react

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vocab/react - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

dist/vocab-react.cjs.d.ts.map

4

dist/declarations/src/index.d.ts
import type { TranslationFile, LanguageName, ParsedFormatFnByKey, ParsedFormatFn } from '@vocab/core';
import { type ReactNode } from 'react';
import React, { type ReactNode } from 'react';
type Locale = string;

@@ -11,3 +11,3 @@ interface TranslationsValue {

}
export declare const VocabProvider: ({ children, language, locale, }: VocabProviderProps) => JSX.Element;
export declare const VocabProvider: ({ children, language, locale, }: VocabProviderProps) => React.JSX.Element;
export declare const useLanguage: () => TranslationsValue;

@@ -14,0 +14,0 @@ type FormatXMLElementReactNodeFn = (parts: ReactNode[]) => ReactNode;

export * from "./declarations/src/index";
//# sourceMappingURL=vocab-react.cjs.d.ts.map
{
"name": "@vocab/react",
"version": "1.1.8",
"version": "1.1.9",
"main": "dist/vocab-react.cjs.js",

@@ -15,3 +15,3 @@ "module": "dist/vocab-react.esm.js",

"dependencies": {
"@vocab/core": "^1.5.0",
"@vocab/core": "^1.6.0",
"intl-messageformat": "^10.0.0"

@@ -18,0 +18,0 @@ },

@@ -32,3 +32,3 @@ # Vocab

You can configure Vocab directly when calling the API or via a `vocab.config.js` file.
You can configure Vocab directly when calling the API or via a `vocab.config.js` or `vocab.config.cjs` file.

@@ -188,3 +188,3 @@ In this example we've configured two languages, English and French, where our initial `translation.json` files will use English.

Configuration can either be passed into the Node API directly or be gathered from the nearest _vocab.config.js_ file.
Configuration can either be passed into the Node API directly or be gathered from the nearest _vocab.config.js_ or _vocab.config.cjs_ file.

@@ -346,3 +346,3 @@ **vocab.config.js**

Vocab can generate a pseudo-localized language via the [`generatedLanguages` config][generated languages config], either via the webpack plugin or your `vocab.config.js` file.
Vocab can generate a pseudo-localized language via the [`generatedLanguages` config][generated languages config], either via the webpack plugin or your `vocab.config.js` or `vocab.config.cjs` file.
`@vocab/pseudo-localize` exports a `generator` that can be used directly in your config.

@@ -349,0 +349,0 @@

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