monaco-editor-nls-plugin
v0.0.3
Published
Webpack plugin support difference locale by vscode-loc
Downloads
4
Maintainers
Readme
monaco-editor-nls-plugin
webpack 插件 - 支持 dt-react-monaco-editor 的中文快捷键
Install
# yarn
$ yarn add monaco-editor-nls-plugin -D
# npm
$ npm install monaco-editor-nls-plugin -D
# pnpm
$ pnpm i monaco-editor-nls-plugin -D
Usage
const { MonacoEditorNlsPlugin } = require('monaco-editor-nls-plugin');
module.exports = function (webpackEnv) {
return {
module: { ... },
entry: ...,
output: { ... },
plugin: [
...,
new MonacoEditorNlsPlugin({ locale: 'zh-cn' }),
],
};
}
Options
You can pass a hash of configuration options to monaco-editor-nls-plugin
.
Allowed values are as follows:
| Name | Type | Default | Description |
| :----------------------: | :--------------------------------------------------: | :---------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|locale
|{String
|zh-cn
| Format locale
|