molecule
molecule copied to clipboard
内置的monaco-editor的右键菜单如何汉化
Question
如图
我们调研一下解决方案,不确定这个好不好解决,因为我发现 monaco-editor 上 https://github.com/microsoft/monaco-editor/issues/784 这个挂了好几年没解决了
我们调研一下解决方案,不确定这个好不好解决,因为我发现 monaco-editor 上 microsoft/monaco-editor#784 这个挂了好几年没解决了
可以试试使用 @monaco-editor/react 来加载编辑器,
import { loader } from "@monaco-editor/react";
// you can configure the locales
loader.config({ "vs/nls": { availableLanguages: { "*": "zh-cn" } } });
此问题通过打包重写源码可以解决 链接地址