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

String – null if the user interface is not present, otherwise an BCP 47 language code, for example, en or fr.

Example

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