Translation

Type
Abstract Class
Namespace
craft\i18n
Inherits
craft\i18n\Translation
Since
4.0.0

Translation helper

View source (opens new window)

# Public Methods

Method Description
prep() Prepares a source translation to be lazy-translated with translate().
translate() Lazy-translates a source translation that was prepared by prep().

# prep()

Prepares a source translation to be lazy-translated with translate().

View source (opens new window)

Arguments

Returns

string (opens new window) – The translated message.

# translate()

Lazy-translates a source translation that was prepared by prep().

View source (opens new window)

Arguments

Returns

string (opens new window) – The translated message.