Ii18nPlugin
Defined in: plugins/i18nPlugin.ts:54
Interface for i18n module.
Extends
Properties
app
app:
IApplication
Defined in: plugins/Plugin.ts:10
Inherited from
id
id:
string
Defined in: plugins/Plugin.ts:8
Inherited from
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
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
initialize()
initialize(
_app
,options
?):void
|Promise
<void
>
Defined in: plugins/Plugin.ts:12
Parameters
_app
options?
any
Returns
void
| Promise
<void
>
Inherited from
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
Returns
void
| Promise
<void
>
Inherited from
registerCoreFunctions()
registerCoreFunctions():
void
Defined in: plugins/Plugin.ts:22
Returns
void
Inherited from
registerCoreSignals()
registerCoreSignals():
void
Defined in: plugins/Plugin.ts:24
Returns
void
Inherited from
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?
locale?
string
Returns
string