@plone/volto
Version:
Volto
10 lines (9 loc) • 445 B
TypeScript
export function changeLanguageCookies(language: any, req: any): void;
/**
* Changes current language using react-intl-redux action and setting the cookie
* @function changeLanguage
* @param {string} language target language.
* @param {number} locale set of locales corresponding the target language.
* @returns {Object} Change the target language action.
*/
export function changeLanguage(language: string, locale: number, req: any): any;