@vocab/react
Advanced tools
Comparing version 1.1.8 to 1.1.9
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 @@ |
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
28800
10
261
Updated@vocab/core@^1.6.0