react-intl-universal
Advanced tools
Comparing version 1.13.1 to 1.14.0
{ | ||
"name": "react-intl-universal", | ||
"version": "1.13.1", | ||
"version": "1.14.0", | ||
"description": "Internationalize React apps. Not only for React.Component but also for Vanilla JS.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
declare module "react-intl-universal" { | ||
/** | ||
* Intl translation type definition | ||
* @example { 'sign': string, 'logout': string } | ||
*/ | ||
export interface Message {} | ||
type Key = keyof Message; | ||
/** | ||
* Helper: determine user's locale via URL, cookie, and browser's language. | ||
@@ -36,3 +42,3 @@ * You may not this API, if you have other rules to determine user's locale. | ||
*/ | ||
export function get(key: string): string; | ||
export function get(key: Key): string; | ||
@@ -52,3 +58,3 @@ /** | ||
*/ | ||
export function getHTML(key: string): string; | ||
export function getHTML(key: Key): string; | ||
@@ -61,6 +67,6 @@ /** | ||
*/ | ||
export function getHTML(key: string, value: any): string; | ||
export function getHTML(key: Key, value: any): string; | ||
/** | ||
* Get the inital options | ||
* Get the inital options | ||
* @returns {Object} options includes currentLocale and locales | ||
@@ -82,3 +88,3 @@ */ | ||
* Load more locales after init | ||
* @param {Object} locales App locale data | ||
* @param {Object} locales App locale data | ||
*/ | ||
@@ -95,3 +101,3 @@ export function load(locales: { [key: string]: any }): void; | ||
} | ||
export interface ReactIntlUniversalMessageDescriptor { | ||
@@ -98,0 +104,0 @@ id: string, |
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
482419
5257