setLanguage = async (newLanguageCode, forceUpdate) => {
    if (!getAvailableLanguage(newLanguageCode))
        return false;

    const state = globalObj._state;

    /**
     * Set language only if it differs from current
     */
    if (newLanguageCode !== getCurrentLanguageCode() || forceUpdate === true) {

        const loaded = await loadTranslationData(newLanguageCode);

        if (!loaded)
            return false;

        setCurrentLanguageCode(newLanguageCode);

        if (state._consentModalExists)
            createConsentModal(miniAPI, createMainContainer);

        if (state._preferencesModalExists)
            createPreferencesModal(miniAPI, createMainContainer);

        handleRtlLanguage();

        return true;
    }

    return false;
}
Update/change modal's language
@param {string} lang new language
@param {boolean} [forceUpdate] update language fields forcefully
@returns {Promise<boolean>}