Installations
npm install monaco-editor-nls
Score
82.8
Supply Chain
90
Quality
75.6
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Developer
wang12124468
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
15.10.0
NPM Version
6.4.1
Statistics
15 Stars
22 Commits
8 Forks
1 Watching
2 Branches
1 Contributors
Updated on 03 Sept 2024
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
195,378
Last day
-39.4%
215
Compared to previous day
Last week
8.4%
1,216
Compared to previous week
Last month
-6.3%
5,450
Compared to previous month
Last year
33.2%
88,751
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
2
monaco-editor-nls
You can find how to use it in monaco-editor-esm-webpack-plugin.
It dependency on vscode-loc to get the locales.
Provider the file of nls.js
to replace the original nls.js
file of monaco editor.
And also Provider the locales of monaco editor
Intalling
npm install monaco-editor-nls
Using
-
The first, you should cofigure monaco-editor-esm-webpack-plugin
-
Then, you can set the locale data in your code.
// index.js import { setLocaleData } from 'monaco-editor-nls'; import zh_CN from 'monaco-editor-nls/locale/zh-hans'; setLocaleData(zh_CN); // You must import/require after `setLocaleData` const monaco = require('monaco-editor/esm/vs/editor/editor.api'); monaco.editor.create(document.getElementById('container'), { language: 'javascript' });
Using custom locale
For example to use vscode-loc
- First, install.
npm install git+ssh://git@github.com:microsoft/vscode-loc.git
-
Then, set the locale data.
// index.js import { setLocaleData } from 'monaco-editor-nls'; import zh_CN from 'vscode-loc/i18n/vscode-language-pack-zh-hans/translations/main.i18n.json'; // Note: there should set the `contents`. setLocaleData(zh_CN.contents); // You must import/require after `setLocaleData` const monaco = require('monaco-editor/esm/vs/editor/editor.api'); monaco.editor.create(document.getElementById('container'), { language: 'javascript' });
Notice
Current monaco-editor version: 0.32.x
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
1 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/21 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 2 are checked with a SAST tool
Score
2.9
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More