Test your website performance for free
Test your website performance
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. The currently supported languages are English (value "en") and German (value "de").

Returns

Stringnull if the user interface is not present, otherwise "en" or "de"

Example

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