Gathering detailed insights and metrics for @cow-low-code/vite-plugin-monaco-editor-nls
Gathering detailed insights and metrics for @cow-low-code/vite-plugin-monaco-editor-nls
Gathering detailed insights and metrics for @cow-low-code/vite-plugin-monaco-editor-nls
Gathering detailed insights and metrics for @cow-low-code/vite-plugin-monaco-editor-nls
vite plugin Monaco editor localize
npm install @cow-low-code/vite-plugin-monaco-editor-nls
Typescript
Module System
Node Version
NPM Version
TypeScript (97.04%)
HTML (1.53%)
JavaScript (0.72%)
Less (0.71%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
32 Stars
37 Commits
19 Forks
1 Watchers
2 Branches
3 Contributors
Updated on Jun 19, 2025
Latest Version
2.0.1
Package Id
@cow-low-code/vite-plugin-monaco-editor-nls@2.0.1
Unpacked Size
12.15 MB
Size
2.62 MB
File Count
24
NPM Version
8.5.0
Node Version
16.14.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
7
1yarn add -D vite-plugin-monaco-editor-nls
Add this plugin in vite.config.ts:
1import MonacoEditorNlsPlugin, { 2 esbuildPluginMonacoEditorNls, 3 Languages, 4} from 'vite-plugin-monaco-editor-nls'; 5 6// https://vitejs.dev/config/ 7export default defineConfig({ 8 resolve: { 9 alias: { 10 '@': resolve('./src'), 11 }, 12 }, 13 build: { 14 sourcemap: true, 15 }, 16 optimizeDeps: { 17 /** vite >= 2.3.0 */ 18 esbuildOptions: { 19 plugins: [ 20 esbuildPluginMonacoEditorNls({ 21 locale: Languages.zh_hans, 22 }), 23 ], 24 }, 25 }, 26 plugins: [ 27 reactRefresh(), 28 MonacoEditorNlsPlugin({locale: Languages.zh_hans}), 29 ], 30});
Joying it
1pnpm run example
It dependency on vscode-loc to get the locales.
pnpm add -D git+https://github.com/microsoft/vscode-loc.git
If this is slow, you can try to copy a copy using gitlab.
like this
pnpm add -D git+https://jihulab.com/james-curtis/vscode-loc
1import reactRefresh from '@vitejs/plugin-react-refresh'; 2import {resolve} from 'path'; 3import {defineConfig} from 'vite'; 4import MonacoEditorNlsPlugin, { 5 esbuildPluginMonacoEditorNls, 6 Languages, 7} from 'vite-plugin-monaco-editor-nls'; 8import Inspect from 'vite-plugin-inspect'; 9 10const zh_CN = require('vscode-loc.git/i18n/vscode-language-pack-zh-hans/translations/main.i18n.json') 11 12// https://vitejs.dev/config/ 13export default defineConfig({ 14 base: './', 15 resolve: { 16 alias: { 17 '@': resolve('./src'), 18 }, 19 }, 20 build: { 21 sourcemap: true, 22 }, 23 optimizeDeps: { 24 /** vite 版本需要大于等于2.3.0 */ 25 esbuildOptions: { 26 plugins: [ 27 esbuildPluginMonacoEditorNls({ 28 locale: Languages.zh_hans, 29 /** 30 * The weight of `localedata` is higher than that of `locale` 31 */ 32 localeData: zh_CN.contents 33 }), 34 ], 35 }, 36 }, 37 plugins: [ 38 reactRefresh(), 39 Inspect(), 40 MonacoEditorNlsPlugin({ 41 locale: Languages.zh_hans, 42 /** 43 * The weight of `localedata` is higher than that of `locale` 44 */ 45 localeData: zh_CN.contents 46 }), 47 ], 48}); 49
try using custom locale , please
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
Found 3/14 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
23 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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