# API
# i18n.t(key,parmas)
| t() | Type | Description |
|---|---|---|
| key | string | translate text |
| params | object | format params |
| return | string | translated text |
# i18n.setLocale()
| setLocale() | Type | Description |
|---|---|---|
| params | string | set locale |
| return | void |
# i18n.getLocale()
| getLocale() | Type | Description |
|---|---|---|
| params | void | |
| return | string | current locale |
← Examples