You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is not a bug report. (please use a different template for reporting a bug)
This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
I have a web application built with ReactJS, react-scripts (webpack), Monaco Editor, and react-monaco-editor. By default, the context menu is in English:
In the hover window, View Problem, Quick Fix, etc. are also in English.
Now, I would like to localize these keywords to Chinese, does anyone know how to do it?
This discussion was converted from issue #4096 on August 03, 2023 13:41.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Context
Description
I have a web application built with ReactJS, react-scripts (webpack), Monaco Editor, and react-monaco-editor. By default, the context menu is in English:
In the hover window,
View Problem
,Quick Fix
, etc. are also in English.Now, I would like to localize these keywords to Chinese, does anyone know how to do it?
PS 0: I have searched similar issues such as https://github.com/microsoft/monaco-editor/blob/main/samples/browser-amd-localized/index.html, but I don't know how to configure (e.g.,
require.config
) in a project with webpack and react-monaco-editor.PS 1: Here is a working sample with react-monaco-editor: https://codesandbox.io/p/sandbox/goofy-rgb-q525mq?file=%2Fsrc%2FApp.js%3A16%2C20. The code calling react-monaco-editor is as follows, which is similar to the way of calling react-monaco-editor in my code.
PS 2: Here is the current
webpack.config.js
in my code, which is simpler thanwebpack.config.js
in the above sample.PS 3: I tried to open the same issue on wang12124468/monaco-editor-esm-webpack-plugin#23, but it was closed.
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Beta Was this translation helpful? Give feedback.
All reactions