Socket
Socket
Sign inDemoInstall

react-i18next

Package Overview
Dependencies
Maintainers
2
Versions
313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-i18next - npm Package Compare versions

Comparing version 11.14.0 to 11.14.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

### 11.14.1
- Rollback [1402](https://github.com/i18next/react-i18next/pull/1402): Remove generics from Trans component to suppress warning issue [1400](https://github.com/i18next/react-i18next/pull/1400)
### 11.14.0

@@ -2,0 +6,0 @@

2

package.json
{
"name": "react-i18next",
"version": "11.14.0",
"version": "11.14.1",
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.",

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

@@ -217,2 +217,3 @@ import i18next, {

export interface TransProps<
K extends TFuncKey<N> extends infer A ? A : never,
N extends Namespace = DefaultNamespace,

@@ -226,3 +227,3 @@ E extends Element = HTMLDivElement

i18n?: i18n;
i18nKey?: I18nKeyType<N> | I18nKeyType<N>[];
i18nKey?: K | K[];
ns?: N;

@@ -235,5 +236,7 @@ parent?: string | React.ComponentType<any> | null; // used in React.createElement if not null

export function Trans<N extends Namespace = DefaultNamespace, E extends Element = HTMLDivElement>(
props: TransProps<N, E>,
): React.ReactElement;
export function Trans<
K extends TFuncKey<N> extends infer A ? A : never,
N extends Namespace = DefaultNamespace,
E extends Element = HTMLDivElement
>(props: TransProps<K, N, E>): React.ReactElement;

@@ -240,0 +243,0 @@ export function useSSR(initialI18nStore: Resource, initialLanguage: string): void;

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