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

react-localize-redux

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-localize-redux - npm Package Compare versions

Comparing version 2.17.1 to 2.17.2

17

es/index.d.ts

@@ -1,2 +0,2 @@

import { ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode, Component as ReactComponent } from 'react';
import { ComponentClass, Component } from 'react-redux';

@@ -55,2 +55,7 @@

export type TranslateChildFunction = (
translate: TranslateFunction,
activeLanguage: Language,
languages: Language[]) => any;
export interface TranslateProps {

@@ -60,3 +65,3 @@ id?: string,

data?: TranslatePlaceholderData,
children: ReactNode|TranslateChildFunction
children?: any|TranslateChildFunction
}

@@ -71,3 +76,3 @@

export type Translate = (value: TranslateValue, data?: TranslatePlaceholderData, options?: Options) => LocalizedElement|LocalizedElementMap;
export type TranslateFunction = (value: TranslateValue, data?: TranslatePlaceholderData, options?: Options) => LocalizedElement|LocalizedElementMap;

@@ -99,3 +104,3 @@ type InitializePayload = {

currentLanguage: string,
translate: Translate
translate: TranslateFunction
};

@@ -150,3 +155,3 @@

export function getTranslate(state: LocaleState): Translate;
export function getTranslate(state: LocaleState): TranslateFunction;

@@ -157,2 +162,2 @@ export function localize(Component: Component<any>, slice?: string, getStateSlice?: GetSliceStateFn): (state: Object|LocaleState) => ComponentClass<LocalizeProps>;

export default class TranslateComponent extends Component<TranslateProps> {}
export default class Translate extends ReactComponent<TranslateProps> {}

@@ -1,2 +0,2 @@

import { ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode, Component as ReactComponent } from 'react';
import { ComponentClass, Component } from 'react-redux';

@@ -55,2 +55,7 @@

export type TranslateChildFunction = (
translate: TranslateFunction,
activeLanguage: Language,
languages: Language[]) => any;
export interface TranslateProps {

@@ -60,3 +65,3 @@ id?: string,

data?: TranslatePlaceholderData,
children: ReactNode|TranslateChildFunction
children?: any|TranslateChildFunction
}

@@ -71,3 +76,3 @@

export type Translate = (value: TranslateValue, data?: TranslatePlaceholderData, options?: Options) => LocalizedElement|LocalizedElementMap;
export type TranslateFunction = (value: TranslateValue, data?: TranslatePlaceholderData, options?: Options) => LocalizedElement|LocalizedElementMap;

@@ -99,3 +104,3 @@ type InitializePayload = {

currentLanguage: string,
translate: Translate
translate: TranslateFunction
};

@@ -150,3 +155,3 @@

export function getTranslate(state: LocaleState): Translate;
export function getTranslate(state: LocaleState): TranslateFunction;

@@ -157,2 +162,2 @@ export function localize(Component: Component<any>, slice?: string, getStateSlice?: GetSliceStateFn): (state: Object|LocaleState) => ComponentClass<LocalizeProps>;

export default class TranslateComponent extends Component<TranslateProps> {}
export default class Translate extends ReactComponent<TranslateProps> {}
{
"name": "react-localize-redux",
"version": "2.17.1",
"version": "2.17.2",
"description": "Localization library for React/Redux",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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