i18next
Advanced tools
Comparing version 23.10.1 to 23.11.0
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"23.10.1"} | ||
{"type":"module","version":"23.11.0"} |
{ | ||
"name": "i18next", | ||
"version": "23.10.1", | ||
"version": "23.11.0", | ||
"description": "i18next internationalization framework", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/i18next.js", |
@@ -119,4 +119,4 @@ import type { | ||
type FilterKeysByContext<Keys, TOpt extends TOptions> = TOpt['context'] extends string | ||
? Keys extends `${infer Prefix}${_ContextSeparator}${TOpt['context']}${infer Suffix}` | ||
type FilterKeysByContext<Keys, Context> = Context extends string | ||
? Keys extends `${infer Prefix}${_ContextSeparator}${Context}${infer Suffix}` | ||
? `${Prefix}${Suffix}` | ||
@@ -132,2 +132,3 @@ : never | ||
ActualNS extends Namespace = NsByTOptions<Ns, TOpt>, | ||
const Context extends TOpt['context'] = TOpt['context'], | ||
> = $IsResourcesDefined extends true | ||
@@ -138,3 +139,3 @@ ? FilterKeysByContext< | ||
| ParseKeysByFallbackNs<Keys>, | ||
TOpt | ||
Context | ||
> | ||
@@ -141,0 +142,0 @@ : string; |
634467
14386