Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dt-monaco-editor-nls

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dt-monaco-editor-nls

Simplified Chinese Support For Monaco Editor

  • 0.0.1-beta.0
  • unpublished
  • beta
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

dt-monaco-editor-nls

nls: National Language Support

This package is a webpack plugin for using zh-CN in monaco-editor@0.30.1.

The /i18n/dt-zh-hans.json is condensed from vscode-loc and it only applicable to DTStack. Provider the nls.js to replace the monaco-editor/esm/vs/nls.js.

Install

npm install dt-monaco-editor-nls

Using

const plugin = [
    ...,
    {
        key: 'WebpackPlugin',
        action: 'add',
        opts: {
            name: 'DTMonacoEditorNlsPlugin',
            fn: () => {
                return new DTMonacoEditorNlsPlugin();
            },
        },
    }
]
  • webpack.config.js
const DTMonacoEditorNlsPlugin = require("dt-monaco-editor-nls");

module.exports = {
    ...,
    plugins: [new DTMonacoEditorNlsPlugin()],
    ...,
};

Notice

Our monaco-editor version: 0.30.1 and we will use 0.31.1 in the feature.

If you need complete zh-CN or other languages, you can fork this repository, find your json file in vscode-loc and move to /i18n/***.json, and you need to modify the code with json file path in nls.js.

Keywords

FAQs

Package last updated on 14 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc