Locale

Type
Class
Namespace
craft\commerce\helpers
Inherits
craft\commerce\helpers\Locale
Since
3.2.13

Locale Helper

View source (opens new window)

# Public Methods

Method Description
getSiteAndOtherLanguages() Get the created sites languages and all languages.
switchAppLanguage() Set language of the application

# getSiteAndOtherLanguages()

Get the created sites languages and all languages.

View source (opens new window)

Throws

# switchAppLanguage()

Set language of the application

View source (opens new window)

Arguments

Throws