Configuration

export interface 
ModuleOptions
{
locale
?:
MonacoEditorLocale
,
removeSourceMaps
?: boolean,
componentName
?: {
codeEditor
?: string,
diffEditor
?: string
} } const
getDefaults
= (
nuxt
:
Nuxt
):
Required
<
ModuleOptions
> => {
return {
locale
: 'en',
removeSourceMaps
: !
nuxt
.
options
.
dev
,
componentName
: {
codeEditor
: 'MonacoEditor',
diffEditor
: 'MonacoDiffEditor'
} } }
locale

Set UI Locale.
Available locales are cs, de, es, fr, it, ja, ko, pl, pt-br, qps-ploc, ru, tr, zh-hans, zh-hant, en.

removeSourceMaps

Prevent loading source maps of monaco-editor.
Source maps are usually removed automatically.
If you get errors like Cannot find source file, set this option to true.

componentName

Change component name as you want. \

codeEditor for <MonacoEditor>, diffEditor for <MonacoDiffEditor>.