Search...
language
Gets a code representing the site's language.
Description
The retrieved language code corresponds to the main site language as found in the General Info section of your site's Dashboard.
Note: If you have a multilingual site, and it is being viewed in a language that is not the main site language, the
language
property still returns the main site language. To work with the languages of a multilingual site, use the Multilingual API.
Type:
stringRead Only
Was this helpful?
Get the site's language
Copy Code
1import wixSite from 'wix-site';23// ...45const language = wixSite.language; // "en"