i18next 23.15.1 → 23.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"type":"module","version":"23.15.1"}
1
+ {"type":"module","version":"23.15.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next",
3
- "version": "23.15.1",
3
+ "version": "23.15.2",
4
4
  "description": "i18next internationalization framework",
5
5
  "main": "./dist/cjs/i18next.js",
6
6
  "module": "./dist/esm/i18next.js",
@@ -712,7 +712,7 @@ export interface TOptionsBase {
712
712
  /**
713
713
  * Used for contexts (eg. male\female)
714
714
  */
715
- context?: any;
715
+ context?: unknown;
716
716
  /**
717
717
  * Object with vars for interpolation - or put them directly in options
718
718
  */
package/typescript/t.d.ts CHANGED
@@ -127,9 +127,11 @@ type ParseKeysByFallbackNs<Keys extends $Dictionary> = _FallbackNamespace extend
127
127
  ? Keys[UnionFallbackNs]
128
128
  : Keys[_FallbackNamespace & string];
129
129
 
130
- type FilterKeysByContext<Keys, Context> = Context extends string
131
- ? Keys extends `${infer Prefix}${_ContextSeparator}${Context}${infer Suffix}`
132
- ? `${Prefix}${Suffix}`
130
+ export type FilterKeysByContext<Keys, Context> = Context extends string
131
+ ? Keys extends
132
+ | `${infer Prefix}${_ContextSeparator}${Context}${_PluralSeparator}${PluralSuffix}`
133
+ | `${infer Prefix}${_ContextSeparator}${Context}`
134
+ ? Prefix
133
135
  : never
134
136
  : Keys;
135
137