Edit this topic


: shell

: localization

: localization

: /modules/core/localization/services/t.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/localization/services/t.js


Provides the translation of the provided string in the current culture.

Kind: global function

Param Type Description
defaultString String The string to translate in the default en-US culture.

t.resolve(defaultString, culture)

Broadcasts calls for resolving string translations. Don't call directly. Used internally by t.

Kind: static method of t

Param Type Description
defaultString String the string to translate.
culture String the culture for which a translation is required.