ActiveUI

ActiveUI

  • User Guide
  • Developer Documentation

Home > @activeviam/activeui-sdk > Translator

Translator interface

Signature:

export interface Translator 

Properties

PropertyTypeDescription
getLocale() => Locale
getTranslation(locale: Locale) => any

Methods

MethodDescription
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)
  • Translator interface
  • Properties
  • Methods
Copyright © 2023 ActiveViam