i18next 23.2.7 → 23.2.9
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/index.d.ts +19 -0
- package/package.json +1 -1
package/dist/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"23.2.
|
|
1
|
+
{"type":"module","version":"23.2.9"}
|
package/index.d.ts
CHANGED
|
@@ -907,6 +907,7 @@ type AppendKeyPrefix<Key, KPrefix> = KPrefix extends string
|
|
|
907
907
|
* T function declaration *
|
|
908
908
|
**************************/
|
|
909
909
|
export interface TFunction<Ns extends Namespace = _DefaultNamespace, KPrefix = undefined> {
|
|
910
|
+
$TFunctionBrand: Ns;
|
|
910
911
|
<
|
|
911
912
|
Key extends ParseKeys<Ns, TOpt, KPrefix> | TemplateStringsArray,
|
|
912
913
|
TOpt extends TOptions,
|
|
@@ -1249,6 +1250,24 @@ export interface i18n {
|
|
|
1249
1250
|
*/
|
|
1250
1251
|
resolvedLanguage?: string;
|
|
1251
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* Checks if namespace has loaded yet.
|
|
1255
|
+
* i.e. used by react-i18next
|
|
1256
|
+
*/
|
|
1257
|
+
hasLoadedNamespace(
|
|
1258
|
+
ns: string | readonly string[],
|
|
1259
|
+
options?: {
|
|
1260
|
+
lng?: string | readonly string[];
|
|
1261
|
+
precheck: (
|
|
1262
|
+
i18n: i18n,
|
|
1263
|
+
loadNotPending: (
|
|
1264
|
+
lng: string | readonly string[],
|
|
1265
|
+
ns: string | readonly string[],
|
|
1266
|
+
) => boolean,
|
|
1267
|
+
) => boolean;
|
|
1268
|
+
},
|
|
1269
|
+
): boolean;
|
|
1270
|
+
|
|
1252
1271
|
/**
|
|
1253
1272
|
* Loads additional namespaces not defined in init options.
|
|
1254
1273
|
*/
|