Open iaa3906 opened 2 years ago
import { setLocaleData } from 'monaco-editor-nls' import zh_CN from 'monaco-editor-nls/locale/zh-hans' setLocaleData(zh_CN) // import * as monaco from 'monaco-editor' const monaco = require('monaco-editor/esm/vs/editor/editor.api')
Only part of the text has been localized, and most of the text is still the original text
When I return to version 0.30, I can localize it all
monaco-editor version : 0.32.0 monaco-editor-nls version: 2.0.0 monaco-editor-esm-webpack-plugin version: 2.0.2 monaco-editor-webpack-plugin version: 7.0.0
to add to this, this happens with some suggestion text also, eg
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Code
Actual Behavior
Only part of the text has been localized, and most of the text is still the original text
Expected Behavior
When I return to version 0.30, I can localize it all
Additional Context
monaco-editor version : 0.32.0 monaco-editor-nls version: 2.0.0 monaco-editor-esm-webpack-plugin version: 2.0.2 monaco-editor-webpack-plugin version: 7.0.0