Helpers.Translate

Methods

(static) translate(string, from) → {string}

Translate an English string into another language.

Parameters:
Name Type Description
string string

The string to translate.

from string | object

The language used to translate. If a string, the language is loaded into an object.

Source:
Returns:
  • If no diction key is found, the untranslated string is returned.
Type
string