Skip to content

Commit

Permalink
types: fix resolvedLanguage type (#1960)
Browse files Browse the repository at this point in the history
`resolvedLanguage` can be unset if i18next is initialized in `cimode` and `dev`

https://github.com/i18next/i18next/blob/e240c0eb29b5e118df174c6ba863a570e56fa859/src/i18next.js#L306
  • Loading branch information
ctjhoa committed May 12, 2023
1 parent e240c0e commit 566ef74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ export interface i18n {
* Is set to the current resolved language.
* It can be used as primary used language, for example in a language switcher.
*/
resolvedLanguage: string;
resolvedLanguage?: string;

/**
* Loads additional namespaces not defined in init options.
Expand Down

0 comments on commit 566ef74

Please sign in to comment.