getLanguageCode()

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.

Syntax

Copy
function getLanguageCode(): Promise<string>

Parameters

This method does not take any parameters.

Returns

Promise<string>

The editor's language code.

Example

Copy
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(); }
Did this help?