i18next 25.4.2 → 25.5.0

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.
@@ -2196,4 +2196,4 @@ const hasLoadedNamespace = instance.hasLoadedNamespace;
2196
2196
  const loadNamespaces = instance.loadNamespaces;
2197
2197
  const loadLanguages = instance.loadLanguages;
2198
2198
 
2199
- export { changeLanguage, createInstance, instance as default, dir, exists, getFixedT, hasLoadedNamespace, init, loadLanguages, loadNamespaces, loadResources, reloadResources, setDefaultNamespace, t, use };
2199
+ export { changeLanguage, createInstance, instance as default, dir, exists, getFixedT, hasLoadedNamespace, init, keysFromSelector as keyFromSelector, loadLanguages, loadNamespaces, loadResources, reloadResources, setDefaultNamespace, t, use };
@@ -2196,4 +2196,4 @@ const hasLoadedNamespace = instance.hasLoadedNamespace;
2196
2196
  const loadNamespaces = instance.loadNamespaces;
2197
2197
  const loadLanguages = instance.loadLanguages;
2198
2198
 
2199
- export { changeLanguage, createInstance, instance as default, dir, exists, getFixedT, hasLoadedNamespace, init, loadLanguages, loadNamespaces, loadResources, reloadResources, setDefaultNamespace, t, use };
2199
+ export { changeLanguage, createInstance, instance as default, dir, exists, getFixedT, hasLoadedNamespace, init, keysFromSelector as keyFromSelector, loadLanguages, loadNamespaces, loadResources, reloadResources, setDefaultNamespace, t, use };
@@ -1 +1 @@
1
- {"type":"module","version":"25.4.2"}
1
+ {"type":"module","version":"25.5.0"}
package/index.d.ts CHANGED
@@ -574,3 +574,7 @@ export const setDefaultNamespace: i18n['setDefaultNamespace'];
574
574
  export const hasLoadedNamespace: i18n['hasLoadedNamespace'];
575
575
  export const loadNamespaces: i18n['loadNamespaces'];
576
576
  export const loadLanguages: i18n['loadLanguages'];
577
+
578
+ export declare function keyFromSelector<S = Record<string, any>, T = string>(
579
+ selector: ($: S) => T,
580
+ ): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next",
3
- "version": "25.4.2",
3
+ "version": "25.5.0",
4
4
  "description": "i18next internationalization framework",
5
5
  "main": "./dist/cjs/i18next.js",
6
6
  "module": "./dist/esm/i18next.js",