Open LYRbbding opened 3 years ago
ζΎε°θ§£ε³ζΉζ³δΊεοΌ
For anyone else having this issue, pending official support by Monaco I've made this package which adds TS/JS diagnostic message translation https://www.npmjs.com/package/monaco-editor-typescript-locales
monaco-editor version: 0.23.0 Browser: Microsoft Edge 89.0.774.45 OS: Windows 10 (20H2) Playground code that reproduces the issue:
I want to set the locale of monaco typescript to zh-cn. However, using the code as follow, I can only see the editor showing in Chinese. The diagnostic messages of typescript are still English.
The value of 'monaco.languages.typescript.compileroptions.locale' in Console is 'zh-cn'. I tried to put the folder zh-cn with the file diagnositcMessages.generated.json under the path 'vs/language/typescript', but it doesn't work as well. Does it mean I did the wrong steps or this function is not available for monaco editor now.
Thanks a lot for developing this project!