0.0.3 • Published 1 month ago

monaco-editor-nls-plugin v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

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:

NameTypeDefaultDescription
locale{Stringzh-cnFormat locale

|

0.0.3

1 month ago

0.0.2

1 month ago

0.0.1

1 month ago