Skip to content

Locale ​

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

Locale Helper

View source

Public Methods ​

MethodDescription
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

Throws ​

switchAppLanguage() ​

Set language of the application

View source

Arguments ​

Throws ​