setLocale("<language-code>")
: This method is used to set the language in the UI Kit. It takes the enum value from Language enum and sets the value accordingly.getLocale()
: This method is used to get the current language. This method is used to get the current language. By default, it will return current language from device/browser.