Package

io.udash

i18n

Permalink

package i18n

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. i18n
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait FrontendTranslationProvider extends TranslationProvider with CrossLogging

    Permalink
  2. type LangProperty = properties.single.Property[Lang]

    Permalink
  3. class LocalTranslationProvider extends FrontendTranslationProvider

    Permalink

    TranslationProvider dedicated to frontend-only applications.

  4. class RemoteTranslationProvider extends FrontendTranslationProvider

    Permalink

    TranslationProvider dedicated to applications using RPC system.

Value Members

  1. object LangProperty

    Permalink
  2. implicit def langFromProperty(implicit property: LangProperty): Lang

    Permalink
  3. def translated(translation: Future[Translated], placeholder: Option[Element] = None): scalatags.JsDom.Modifier

    Permalink

    Binds translated string in DOM element.

    Binds translated string in DOM element.

    translation

    Future containing translated string or error.

    placeholder

    Placeholder, if None passed it will be empty text node.

  4. def translatedAttr(translation: Future[Translated], attr: String): scalatags.JsDom.Modifier

    Permalink

    Binds translated string in DOM element attribute.

    Binds translated string in DOM element attribute.

    translation

    Future containing translated string or error.

    attr

    Attribute name which gonna be updated when translation text become ready.

  5. def translatedAttrDynamic[Key <: TranslationKey](key: Key, attr: String)(translator: (Key) ⇒ Future[Translated])(implicit lang: LangProperty): Binding

    Permalink

    Binds translated string in DOM element attribute and updates it when application language changes.

    Binds translated string in DOM element attribute and updates it when application language changes.

    key

    TranslationKey which will be used in order to get text.

    attr

    Attribute name which gonna be updated when translation text become ready.

    translator

    Should apply any needed arguments to TranslationKey and create Future[Translated].

  6. def translatedDynamic[Key <: TranslationKey](key: Key, placeholder: Option[Element] = None)(translator: (Key) ⇒ Future[Translated])(implicit lang: LangProperty): Binding

    Permalink

    Binds translated string in DOM element and updates it when application language changes.

    Binds translated string in DOM element and updates it when application language changes.

    key

    TranslationKey which will be used in order to get text.

    placeholder

    Placeholder, if None passed it will be empty text node.

    translator

    Should apply any needed arguments to TranslationKey and create Future[Translated].

Inherited from AnyRef

Inherited from Any

Ungrouped