Returns the language code of the language currently used in the editor interface. Use the language code to localize the content in your settings panel.
function getLanguageCode(): Promise<string>
This method does not take any parameters.
Promise<string>
The editor's language code.
import { editor, info } from "@wix/editor";
import { createClient } from "@wix/sdk";
const client = createClient({
host: editor.host(),
modules: { info },
});
async function getLanguageCode() {
const response = await client.info.getLanguageCode();
}