Search...
getMultilingual( )
Gets site multilingual information.
Description
The getMultilingual()
function returns a Promise that resolves to the site's
multilingual information.
The retrieved multilingual information is based on the languages set using Wix Multilingual.
Syntax
function getMultilingual(): GeneralInfoLanguages
getMultilingual Parameters
This function does not take any parameters.
Returns
Fulfilled - An object containing the site multilingual information. Rejected - Error message.
Return Type:
Promise<GeneralInfoLanguages>
NAME
TYPE
DESCRIPTION
supportedLanguages
Array<GeneralInfoLanguagesSupported>
List supported languages.
autoRedirect
boolean
Whether to automatically redirect users based on their browser's settings.
Was this helpful?
Get site multilingual information
Copy Code
1import wixSiteBackend from 'wix-site-backend';23export function getMultilingual() {4 return wixSiteBackend.generalInfo.getMultilingual();5}67/*8 * {9 * "supportedLanguages": [10 * {11 * "languageCode": "en",12 * "locale": {13 * "country": "US",14 * "languageCode": "en"15 * },16 * "iconUrl": "someUrl",17 * "isPrimary": true18 * }19 * ],20 * "autoRedirect": true21 * }22 */