i18next 23.2.7 → 23.2.8

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.2.7"}
1
+ {"type":"module","version":"23.2.8"}
package/index.d.ts CHANGED
@@ -1249,6 +1249,24 @@ export interface i18n {
1249
1249
  */
1250
1250
  resolvedLanguage?: string;
1251
1251
 
1252
+ /**
1253
+ * Checks if namespace has loaded yet.
1254
+ * i.e. used by react-i18next
1255
+ */
1256
+ hasLoadedNamespace(
1257
+ ns: string | readonly string[],
1258
+ options?: {
1259
+ lng?: string | readonly string[];
1260
+ precheck: (
1261
+ i18n: i18n,
1262
+ loadNotPending: (
1263
+ lng: string | readonly string[],
1264
+ ns: string | readonly string[],
1265
+ ) => boolean,
1266
+ ) => boolean;
1267
+ },
1268
+ ): boolean;
1269
+
1252
1270
  /**
1253
1271
  * Loads additional namespaces not defined in init options.
1254
1272
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next",
3
- "version": "23.2.7",
3
+ "version": "23.2.8",
4
4
  "description": "i18next internationalization framework",
5
5
  "main": "./dist/cjs/i18next.js",
6
6
  "module": "./dist/esm/i18next.js",