Interface ITranslateService

Index

Call signatures

Methods

Call signatures

(key: string, params?: Array<string>): IPromise

Parameters

  • key: string
  • params?: Array<string> optional

Returns

IPromise

Methods

public cloakClassName(): string

Returns

string

public fallbackLanguage(langKey?: string): string

Parameters

  • langKey?: string optional

Returns

string

public fallbackLanguage(langKey?: Array<string>): string

Parameters

  • langKey?: Array<string> optional

Returns

string

public instant(translationId: string, interpolateParams?: any, interpolationId?: string): string

Parameters

  • translationId: string
  • interpolateParams?: any optional
  • interpolationId?: string optional

Returns

string

public instant(translationId: Array<string>, interpolateParams?: any, interpolationId?: string): string

Parameters

  • translationId: Array<string>
  • interpolateParams?: any optional
  • interpolationId?: string optional

Returns

string

public isPostCompilingEnabled(): boolean

Returns

boolean

public preferredLanguage(): string

Returns

string

public proposedLanguage(): string

Returns

string

public refresh(langKey?: string): IPromise

Parameters

  • langKey?: string optional

Returns

IPromise

public storage(): IStorage

Returns

IStorage

public storageKey(): string

Returns

string

public use(): string

Returns

string

public use(key: string): IPromise

Parameters

  • key: string

Returns

IPromise

public useFallbackLanguage(langKey?: string)

Parameters

  • langKey?: string optional