Ii18nPlugin
Defined in: plugins/i18nPlugin.ts:54
Interface for i18n module.
Extends
Section titled “Extends”Properties
Section titled “Properties”app:
IApplication
Defined in: plugins/Plugin.ts:10
Inherited from
Section titled “Inherited from”id:
string
Defined in: plugins/Plugin.ts:8
Inherited from
Section titled “Inherited from”locale
Section titled “locale”
readonly
locale:string
Defined in: plugins/i18nPlugin.ts:55
locales
Section titled “locales”
readonly
locales:string
[]
Defined in: plugins/i18nPlugin.ts:56
onLocaleChanged
Section titled “onLocaleChanged”onLocaleChanged:
Signal
<(locale
) =>void
>
Defined in: plugins/i18nPlugin.ts:57
options
Section titled “options”
readonly
options:Partial
<O
>
Defined in: plugins/Plugin.ts:12
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”addSignalConnection()
Section titled “addSignalConnection()”addSignalConnection(…
args
):void
Defined in: plugins/Plugin.ts:20
Parameters
Section titled “Parameters”…SignalConnection
[]
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”clearSignalConnections()
Section titled “clearSignalConnections()”clearSignalConnections():
void
Defined in: plugins/Plugin.ts:22
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”IPlugin
.clearSignalConnections
destroy()
Section titled “destroy()”destroy():
void
Defined in: plugins/Plugin.ts:18
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”initialize()
Section titled “initialize()”initialize(
options
,app
):void
|Promise
<void
>
Defined in: plugins/Plugin.ts:14
Parameters
Section titled “Parameters”options
Section titled “options”Partial
<O
>
Returns
Section titled “Returns”void
| Promise
<void
>
Inherited from
Section titled “Inherited from”loadLocale()
Section titled “loadLocale()”loadLocale(
localeId
):Promise
<void
>
Defined in: plugins/i18nPlugin.ts:61
Parameters
Section titled “Parameters”localeId
Section titled “localeId”string
Returns
Section titled “Returns”Promise
<void
>
parse()
Section titled “parse()”parse(
input
,locale?
):string
Defined in: plugins/i18nPlugin.ts:65
Parameters
Section titled “Parameters”string
locale?
Section titled “locale?”string
Returns
Section titled “Returns”string
postInitialize()
Section titled “postInitialize()”postInitialize(
_app
):void
|Promise
<void
>
Defined in: plugins/Plugin.ts:16
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
| Promise
<void
>
Inherited from
Section titled “Inherited from”registerCoreFunctions()
Section titled “registerCoreFunctions()”registerCoreFunctions():
void
Defined in: plugins/Plugin.ts:24
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”registerCoreSignals()
Section titled “registerCoreSignals()”registerCoreSignals():
void
Defined in: plugins/Plugin.ts:26
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”setLocale()
Section titled “setLocale()”setLocale(
localeId
):Promise
<string
>
Defined in: plugins/i18nPlugin.ts:59
Parameters
Section titled “Parameters”localeId
Section titled “localeId”string
Returns
Section titled “Returns”Promise
<string
>
t(
key
,params?
,locale?
):string
Defined in: plugins/i18nPlugin.ts:63
Parameters
Section titled “Parameters”string
params?
Section titled “params?”locale?
Section titled “locale?”string
Returns
Section titled “Returns”string