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

react-intl-universal

Package Overview
Dependencies
Maintainers
1
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-intl-universal - npm Package Compare versions

Comparing version 1.13.1 to 1.14.0

2

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

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