Search...
getLanguage( )
Gets site language information.
Description
The getLanguage()
function returns a Promise that resolves to the site's
language information.
The retrieved language information is the information that has been entered in the General Info section of your site's Dashboard.
Syntax
function getLanguage(): Promise<string>
getLanguage Parameters
This function does not take any parameters.
Returns
Fulfilled - An object containing the site language information. Rejected - Error message.
Return Type:
Promise<string>
Was this helpful?
Get site language information
Copy Code
1import wixSiteBackend from 'wix-site-backend';23export function getLanguage() {4 return wixSiteBackend.generalInfo.getLanguage(); // "en"5}