init()
: This method is used for setting the language in the UI Kit. It will take the constant value from the Language class and set the value accordingly.
localize(String text)
: This method is used to translate the provided text to the active language.
setLocale(language: string)
: This method is used to set the language in the UI Kit. It will take the constant value from the Language class and set the value accordingly.
getLocale()
: This method is used to get the current language. By default, it will return the current language from the device/browser.