Module

services/i18n/polyglot

Analytics implementation based on AirBnB Polyglot

Methods

# inner get(key, opts) → {string}

Gets the translation for a key

Parameters:
Name Type Description
key string

Label for the string

opts *

Object with the values for the interpolation

Translated key

string

# inner setDictionary(dictionary, localeopt) → {boolean}

Sets the dictionary to get the translations

Parameters:
Name Type Attributes Description
dictionary object

key/value object with the strings

locale string <optional>

value for the locale

true if ok

boolean