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.
- package/dist/esm/package.json +1 -1
- package/package.json +1 -1
- package/typescript/options.d.ts +1 -1
- package/typescript/t.d.ts +5 -3
package/dist/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"23.15.
|
|
1
|
+
{"type":"module","version":"23.15.2"}
|
package/package.json
CHANGED
package/typescript/options.d.ts
CHANGED
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
|
|
132
|
-
|
|
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
|
|