I18n.getFallback

Getter for the translation

class I18n
static
string
getFallback
(
string id
,
string fallback
,
string locale = currentLocale
)

Parameters

id string

ID for the translation

fallback string

Translation if the error was catched

locale string

Locale for translation getting

Return Value

Type: string

Translation for the ID or fallback

Meta