Aller au contenu

SynchronizedTranslator

Ce contenu n’est pas encore disponible dans votre langue.

Defined in: packages/runtime-core/lib/i18n.d.ts:60

Extends

Type Parameters

T extends object

Implements

Constructors

new SynchronizedTranslator()

new SynchronizedTranslator<T>(options): SynchronizedTranslator<T>

Defined in: packages/runtime-core/lib/i18n.d.ts:63

Parameters

options

TranslatorOptions<T>

Returns

SynchronizedTranslator<T>

Overrides

BaseTranslator.constructor

Accessors

isInitialized

Get Signature

get isInitialized(): boolean

Defined in: packages/runtime-core/lib/i18n.d.ts:50

Returns

boolean

Set Signature

set isInitialized(value): void

Defined in: packages/runtime-core/lib/i18n.d.ts:51

Parameters
value

boolean

Returns

void

Implementation of

TranslatorInstance.isInitialized

Inherited from

BaseTranslator.isInitialized


onLanguageChange

Set Signature

set onLanguageChange(handler): void

Defined in: packages/runtime-core/lib/i18n.d.ts:52

Parameters
handler

LanguageChangeHandler

Returns

void

Implementation of

TranslatorInstance.onLanguageChange

Inherited from

BaseTranslator.onLanguageChange


resolvedLanguage

Get Signature

get resolvedLanguage(): Language

Defined in: packages/runtime-core/lib/i18n.d.ts:53

Returns

Language

Implementation of

TranslatorInstance.resolvedLanguage

Inherited from

BaseTranslator.resolvedLanguage

Methods

changeLanguage()

changeLanguage(language): void

Defined in: packages/runtime-core/lib/i18n.d.ts:64

Parameters

language

Language

Returns

void

Implementation of

TranslatorInstance.changeLanguage

Overrides

BaseTranslator.changeLanguage


init()

init(options?): void

Defined in: packages/runtime-core/lib/i18n.d.ts:65

Parameters

options?

TranslatorInitOptions

Returns

void

Implementation of

TranslatorInstance.init

Overrides

BaseTranslator.init


t()

t(key): string

Defined in: packages/runtime-core/lib/i18n.d.ts:57

Parameters

key

TranslationKey<T>

Returns

string

Implementation of

TranslatorInstance.t

Inherited from

BaseTranslator.t