Monster.I18n. Provider

A provider makes a translation object available.

Constructor

new Provider()

Since
  • 1.13.0
License
  • AGPLv3

Members

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Since
  • 3.27.0

Methods

assignToElement(locale, element) → {Provider}

Parameters:
NameTypeDescription
localeLocale | string
elementHTMLElement
Returns:
Type: 
Provider

getTranslations(locale) → {Promise}

Parameters:
NameTypeDescription
localeLocale | string
Returns:
Type: 
Promise