microsoft / monaco-editor

A browser based code editor
https://microsoft.github.io/monaco-editor/
MIT License
40.18k stars 3.58k forks source link

v 0.32.0 Cannot localize all text, only partial text can be localized #3038

Open iaa3906 opened 2 years ago

iaa3906 commented 2 years ago

Reproducible in vscode.dev or in VS Code Desktop?

Reproducible in the monaco editor playground?

Monaco Editor Playground Code

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')

Actual Behavior

Only part of the text has been localized, and most of the text is still the original text 飞书20220325-201523

Expected Behavior

When I return to version 0.30, I can localize it all 飞书20220325-201533

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

eliasm307 commented 11 months ago

to add to this, this happens with some suggestion text also, eg image