Socket
Socket
Sign inDemoInstall

react-i18next

Package Overview
Dependencies
Maintainers
2
Versions
312
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.15.4 to 11.15.5

4

CHANGELOG.md

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

### 11.15.5
- types: fix never return type when using plurals [1453](https://github.com/i18next/react-i18next/pull/1453)
### 11.15.4

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

2

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

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

@@ -98,4 +98,6 @@ import i18next, {

type PluralSuffix = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
type WithOrWithoutPlural<K> = TypeOptions['jsonFormat'] extends 'v4'
? K extends `${infer B}_${'zero' | 'one' | 'two' | 'few' | 'many' | 'other'}`
? K extends `${infer B}_${PluralSuffix}`
? B | K

@@ -154,2 +156,8 @@ : K

type StringIfPlural<T> = TypeOptions['jsonFormat'] extends 'v4'
? T extends `${string}_${PluralSuffix}`
? string
: never
: never;
type NormalizeReturn<

@@ -167,3 +175,3 @@ T,

: never
: never;
: StringIfPlural<keyof T>;

@@ -170,0 +178,0 @@ type NormalizeMultiReturn<T, V> = V extends `${infer N}:${infer R}`

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc