Skip to content

Ii18nPlugin

Defined in: plugins/i18nPlugin.ts:54

Interface for i18n module.

Extends

Properties

app

app: IApplication

Defined in: plugins/Plugin.ts:10

Inherited from

IPlugin.app


id

id: string

Defined in: plugins/Plugin.ts:8

Inherited from

IPlugin.id


locale

readonly locale: string

Defined in: plugins/i18nPlugin.ts:55


locales

readonly locales: string[]

Defined in: plugins/i18nPlugin.ts:56


onLocaleChanged

onLocaleChanged: Signal<(locale) => void>

Defined in: plugins/i18nPlugin.ts:57

Methods

addSignalConnection()

addSignalConnection(…args): void

Defined in: plugins/Plugin.ts:18

Parameters

args

SignalConnection[]

Returns

void

Inherited from

IPlugin.addSignalConnection


clearSignalConnections()

clearSignalConnections(): void

Defined in: plugins/Plugin.ts:20

Returns

void

Inherited from

IPlugin.clearSignalConnections


destroy()

destroy(): void

Defined in: plugins/Plugin.ts:16

Returns

void

Inherited from

IPlugin.destroy


initialize()

initialize(_app, options?): void | Promise<void>

Defined in: plugins/Plugin.ts:12

Parameters

_app

IApplication

options?

any

Returns

void | Promise<void>

Inherited from

IPlugin.initialize


loadLocale()

loadLocale(localeId): Promise<void>

Defined in: plugins/i18nPlugin.ts:61

Parameters

localeId

string

Returns

Promise<void>


parse()

parse(input, locale?): string

Defined in: plugins/i18nPlugin.ts:65

Parameters

input

string

locale?

string

Returns

string


postInitialize()

postInitialize(_app): void | Promise<void>

Defined in: plugins/Plugin.ts:14

Parameters

_app

IApplication

Returns

void | Promise<void>

Inherited from

IPlugin.postInitialize


registerCoreFunctions()

registerCoreFunctions(): void

Defined in: plugins/Plugin.ts:22

Returns

void

Inherited from

IPlugin.registerCoreFunctions


registerCoreSignals()

registerCoreSignals(): void

Defined in: plugins/Plugin.ts:24

Returns

void

Inherited from

IPlugin.registerCoreSignals


setLocale()

setLocale(localeId): Promise<string>

Defined in: plugins/i18nPlugin.ts:59

Parameters

localeId

string

Returns

Promise<string>


t()

t(key, params?, locale?): string

Defined in: plugins/i18nPlugin.ts:63

Parameters

key

string

params?

i18nTParams

locale?

string

Returns

string