rsbuild-plugin-monaco-editor-nls
September 23, 2024 ยท View on GitHub
rsbuild-plugin-monaco-editor-nls is a Rsbuild plugin to localize monaco-editor.
Usage
Install:
npm add rsbuild-plugin-monaco-editor-nls -D
Add plugin to your rsbuild.config.ts:
// rsbuild.config.ts
import { pluginMonacoEditorNls, Languages } from "rsbuild-plugin-monaco-editor-nls";
export default {
plugins: [pluginMonacoEditorNls({
locale: Languages.zh_hans,
})],
};
Options
locale
- Type:
string - Default:
undefined - Example:
pluginMonacoEditorNls({
locale: Languages.zh_hans
});
License
MIT.