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.
${showcase:getFileContent('/sections/monacoEditor/example-customLocalizationDiff.xhtml')} ${showcase:getFileContent('/org/primefaces/extensions/showcase/controller/MonacoEditorController.java')}