Home > @activeviam/activeui-sdk > Translator
Translator interface
Signature:
export interface Translator
Properties
| Property | Type | Description |
|---|---|---|
| getLocale | () => Locale | |
| getTranslation | (locale: Locale) => any |
Methods
| Method | Description |
|---|---|
| format(path, parameters) | |
| formatRelative(time, options) | |
| formatSupportingReact(path, parameters) | |
| getConfig() | |
| onReady() | Make sure translation data have been fetched at least once. |
| takeTextOrTranslate(options) | |
| translateWithFallback(path, parameters, fallbackText) |