mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
add i18next.options to interface
This commit is contained in:
@@ -60,5 +60,7 @@ i18n.t('helloWorld', <i18n.TranslationOptions> {
|
||||
defaultValue: 'default',
|
||||
count: 10
|
||||
});
|
||||
|
||||
const options:i18n.Options = i18n.options;
|
||||
const currentLanguage:string = i18n.language;
|
||||
const userLanguageCodes:string[] = i18n.languages;
|
||||
|
||||
Vendored
+2
@@ -119,6 +119,8 @@ declare namespace i18n {
|
||||
createInstance(options?:Options, callback?:(err:any, t:TranslationFunction) => void):I18n;
|
||||
|
||||
cloneInstance(options?:Options, callback?:(err:any, t:TranslationFunction) => void):I18n;
|
||||
|
||||
options: Options;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user