![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
monaco-editor-nls
Advanced tools
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
FAQs
Localization for monaco editor
The npm package monaco-editor-nls receives a total of 0 weekly downloads. As such, monaco-editor-nls popularity was classified as not popular.
We found that monaco-editor-nls demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.