Skip to content

Commit fdb526b

Browse files
committed
update types for supportedLngs
1 parent aca450f commit fdb526b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ export interface InitOptions {
193193
* Array of allowed languages
194194
* @default false
195195
*/
196-
whitelist?: false | string[];
196+
supportedLngs?: false | string[];
197197

198198
/**
199-
* If true will pass eg. en-US if finding en in whitelist
199+
* If true will pass eg. en-US if finding en in supportedLngs
200200
* @default false
201201
*/
202-
nonExplicitWhitelist?: boolean;
202+
nonExplicitSupportedLngs?: boolean;
203203

204204
/**
205205
* Language codes to lookup, given set language is
@@ -863,7 +863,7 @@ export interface i18n {
863863

864864
/**
865865
* Is set to the current detected or set language.
866-
* If you need the primary used language depending on your configuration (whitelist, load) you will prefer using i18next.languages[0].
866+
* If you need the primary used language depending on your configuration (supportedLngs, load) you will prefer using i18next.languages[0].
867867
*/
868868
language: string;
869869

0 commit comments

Comments
 (0)