Edit this topic

T

: shell

: localization

: localization

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

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

t(defaultString)

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

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.

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