New in 1.31.0

editorLanguage()

Returns the user interface language of the currently logged-in editor. 

If the language is not set explicitly by the editor or by means of the editorLanguage option of Scrivito.configure, Scrivito uses a default based on the browser language. Languages currently not supported by the Scrivito user interface default to English (value "en").

Returns

Stringnull if the user interface is not present, otherwise an ISO 639-1 language code, for example, "en" or "fr"

Example

Please note that support for top-level await may require a dedicated Webpack configuration.