This section of the API relates to the methods used for localization.

interface SmiL10nApi {
    solution: SolutionLocalizationApi;
    getLanguage(): string;
}

Properties

Methods

Properties

Methods

  • Returns the BCP 47 language code currently being used in the application. If no language code is found, a fallback locale of "en-US" is returned.

    Returns string

    const language = window.sas.smi.util.l10n.getLanguage();
    console.log(language);