UIのカスタマイズ

言語の変更

// nuxt.config.ts
export default 
defineNuxtConfig
({
modules
: ['nuxt-monaco-editor'],
monacoEditor
: {
locale
: 'ja' }
})

このように設定すると、UIが日本語で表示されます。

使用可能な言語はこちらに記載しています。

テーマの変更

<template>
  <MonacoEditor :options="{ theme: 'vs-dark' }" />
</template>

このように設定すると、UIがダークモードで表示されます。