Gathering detailed insights and metrics for monaco-editor-nls
Gathering detailed insights and metrics for monaco-editor-nls
Gathering detailed insights and metrics for monaco-editor-nls
Gathering detailed insights and metrics for monaco-editor-nls
npm install monaco-editor-nls
82.8
Supply Chain
90
Quality
75.6
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
15 Stars
22 Commits
8 Forks
1 Watching
2 Branches
1 Contributors
Updated on 03 Sept 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
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
2
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
npm install monaco-editor-nls
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' });
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' });
Current monaco-editor version: 0.32.x
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
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
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
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