rsbuild-plugin-monaco-editor-nls
v0.1.1
Published
rsbuild-plugin-monaco-editor-nls is a Rsbuild plugin to localize monaco-editor.
Downloads
3
Readme
rsbuild-plugin-monaco-editor-nls
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.