$setLocale

Introduction

$setLocale(string localeCode) : void

The $setLocale instance method is used to set the active locale. Changing the active locale automatically loads the appropriate language packs and performs all necessary translations.

Last updated