@types/i18next
Advanced tools
Comparing version 0.0.29 to 0.0.30
@@ -42,11 +42,11 @@ // Type definitions for i18next v2.3.4 | ||
replace?: any; | ||
lng?:string; | ||
lngs?:string[]; | ||
fallbackLng?:string; | ||
ns?:string|string[]; | ||
keySeparator?:string; | ||
nsSeparator?:string; | ||
returnObjects?:boolean; | ||
joinArrays?:string; | ||
postProcess?:string|any[]; | ||
lng?: string; | ||
lngs?: string[]; | ||
fallbackLng?: string; | ||
ns?: string | string[]; | ||
keySeparator?: string; | ||
nsSeparator?: string; | ||
returnObjects?: boolean; | ||
joinArrays?: string; | ||
postProcess?: string | any[]; | ||
interpolation?: InterpolationOptions; | ||
@@ -60,6 +60,6 @@ } | ||
fallbackLng?: string; | ||
ns?: string|string[]; | ||
ns?: string | string[]; | ||
defaultNS?: string; | ||
fallbackNS?: string|string[]; | ||
whitelist?:string[]; | ||
fallbackNS?: string | string[]; | ||
whitelist?: string[]; | ||
lowerCaseLng?: boolean; | ||
@@ -74,12 +74,12 @@ load?: string | ||
saveMissingTo?: string; | ||
missingKeyHandler?: (lng:string, ns:string, key:string, fallbackValue:string) => void; | ||
parseMissingKeyHandler?: (key:string) => void; | ||
missingKeyHandler?: (lng: string, ns: string, key: string, fallbackValue: string) => void; | ||
parseMissingKeyHandler?: (key: string) => void; | ||
appendNamespaceToMissingKey?: boolean; | ||
postProcess?: string|any[]; | ||
postProcess?: string | any[]; | ||
returnNull?: boolean; | ||
returnEmptyString?: boolean; | ||
returnObjects?: boolean; | ||
returnedObjectHandler?: (key:string, value:string, options:any) => void; | ||
returnedObjectHandler?: (key: string, value: string, options: any) => void; | ||
joinArrays?: string; | ||
overloadTranslationOptionHandler?: (args:any[]) => TranslationOptions; | ||
overloadTranslationOptionHandler?: (args: any[]) => TranslationOptions; | ||
interpolation?: InterpolationOptions; | ||
@@ -91,36 +91,47 @@ detection?: any; | ||
type TranslationFunction = (key:string, options?:TranslationOptions) => string; | ||
type TranslationFunction = (key: string, options?: TranslationOptions) => string; | ||
interface I18n { | ||
//constructor(options?:Options, callback?:(err:any, t:TranslationFunction) => void); | ||
//constructor(options?: Options, callback?: (err: any, t: TranslationFunction) => void); | ||
init(options?:Options, callback?:(err:any, t:TranslationFunction) => void):I18n; | ||
init(options?: Options, callback?: (err: any, t: TranslationFunction) => void): I18n; | ||
loadResources(callback?:(err:any) => void):void; | ||
loadResources(callback?: (err: any) => void): void; | ||
language:string; | ||
language: string; | ||
languages:string[]; | ||
languages: string[]; | ||
use(module:any):I18n; | ||
use(module: any): I18n; | ||
changeLanguage(lng:string, callback?:(err:any, t:TranslationFunction) => void):void; | ||
changeLanguage(lng: string, callback?: (err: any, t: TranslationFunction) => void): void; | ||
getFixedT(lng?:string, ns?:string|string[]):TranslationFunction; | ||
getFixedT(lng?: string, ns?: string | string[]): TranslationFunction; | ||
t(key:string, options?:TranslationOptions):string|any|Array<any>; | ||
t(key: string, options?: TranslationOptions): string | any | Array<any>; | ||
exists():boolean; | ||
exists(): boolean; | ||
setDefaultNamespace(ns:string):void; | ||
setDefaultNamespace(ns: string): void; | ||
loadNamespaces(ns:string[], callback?:() => void):void; | ||
loadNamespaces(ns: string[], callback?: () => void): void; | ||
loadLanguages(lngs:string[], callback?:()=>void):void; | ||
loadLanguages(lngs: string[], callback?: () => void): void; | ||
dir(lng?:string):string; | ||
dir(lng?: string): string; | ||
createInstance(options?:Options, callback?:(err:any, t:TranslationFunction) => void):I18n; | ||
createInstance(options?: Options, callback?: (err: any, t: TranslationFunction) => void): I18n; | ||
cloneInstance(options?:Options, callback?:(err:any, t:TranslationFunction) => void):I18n; | ||
cloneInstance(options?: Options, callback?: (err: any, t: TranslationFunction) => void): I18n; | ||
on(event: string, listener: () => void): void; | ||
on(initialized: 'initialized', listener: (options: i18n.Options) => void): void; | ||
on(loaded: 'loaded', listener: (loaded: any) => void): void; | ||
on(failedLoading: 'failedLoading', listener: (lng: string, ns: string, msg: string) => void): void; | ||
on(missingKey: 'missingKey', listener: (lngs: any, namespace: string, key: string, res: any) => void): void; | ||
on(added: 'added', listener: (lng: string, ns: string) => void): void; | ||
on(removed: 'removed', listener: (lng: string, ns: string) => void): void; | ||
on(languageChanged: 'languageChanged', listener: (lng: string) => void): void; | ||
off(event: string, listener: () => void): void; | ||
} | ||
@@ -127,0 +138,0 @@ } |
{ | ||
"name": "@types/i18next", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"description": "TypeScript definitions for i18next v2.3.4", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 02 Aug 2016 15:42:56 GMT | ||
* Last updated: Thu, 11 Aug 2016 13:16:04 GMT | ||
* File structure: ProperModule | ||
@@ -14,0 +14,0 @@ * Library Dependencies: none |
@@ -24,3 +24,3 @@ { | ||
"hasPackageJson": false, | ||
"contentHash": "4c330cf490235d6c40a7029d1c1ca164f910c98b4f17d894b6f68a93bc7b0a5a" | ||
"contentHash": "e1edf01d9a45550056d9cbf2891c101d227d8053ad6d78a7a2143b14a0e9f822" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6389
133
0