arya-blue
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga-blue
vela-blue
MonacoEditor
Monaco editor comes with localized translation for most major languages. When that is not sufficient, you can also provide your own translation. To do so, you need to specify the localeUrl option on the widget. It must point to a JavaScript file that adds writes the localized translation to the window.MonacoEnvironment.Locale object. See for example the Japanese localization for how this file should look and what needs to be translated: Japanese localization file

Below you can see the editor in Hindi (try opening the context menu with a right click). Note: Looks like Hindi for demonstration purposes, but it is completely non-sensical. Do not use this in production, but it should illustrate how you can create your own localization. This sample translation file might also be missing new keys added in later versions of Monaco editor.
Source

<p:selectOneButton id="type" value="#{monacoEditorController.type}">
    <f:selectItem itemLabel="Inline" itemValue="inline" />
    <f:selectItem itemLabel="Iframe" itemValue="framed" />
    <p:ajax process="monacoEditorWrapper" update="monacoEditorWrapper" />
</p:selectOneButton>

<h:panelGroup id="monacoEditorWrapper" layout="block" styleClass="monacoEditorBox">
    <pe:monacoDiffEditor id="monacoEditor" widgetVar="monacoEditor"
        rendered="#{monacoEditorController.type eq 'inline'}"
        value="#{monacoEditorController.valueDiff}"
        locale="hi"
        localeUrl="#{resource['other/hindi.js']}"
        editorOptions="#{monacoEditorController.editorOptionsDiff}"
        language="#{monacoEditorController.language}"
        width="100%" height="400px"
        autoResize="true"/>

    <pe:monacoDiffEditorFramed id="monacoEditorFramed" widgetVar="monacoEditorFramed"
        rendered="#{monacoEditorController.type eq 'framed'}"
        value="#{monacoEditorController.valueFramedDiff}"
        locale="hi"
        localeUrl="#{resource['other/hindi.js']}"
        editorOptions="#{monacoEditorController.editorOptionsFramedDiff}"
        language="#{monacoEditorController.languageFramed}"
        width="100%" height="400px"
        autoResize="true"/>
</h:panelGroup>
            
Components and more
Documentation pe:monacoDiffEditor
Attributes (move mouse over the names to see data types)
Name Description
bindingAn EL expression referring to a server side UIComponent instance in a backing bean.Default is generated.
extenderExtender script: JavaScript expression that evaluates to an extender instance.
idUnique identifier of the component in a namingContainer.Default is generated.
overflowWidgetsDomNodeSearch expression for overflow widgets DOM node.
renderedUnique identifier of the component in a namingContainer.Default is generated.
PrimeFaces Extensions Showcase - © 2011-2025,PrimeFaces: 16.0.0-SNAPSHOT,PrimeFaces Extensions: 16.0.0-SNAPSHOT,JSF: Apache MyFaces Core 4.0 - Impl 4.0.3,Server: Apache Tomcat (TomEE)/10.1.52 (10.1.4),Build time: 2026-03-14 23:18