Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to translate/localize Monaco Editor strings? #1283

Closed
vingeek-dev opened this issue Jan 25, 2019 · 4 comments
Closed

How to translate/localize Monaco Editor strings? #1283

vingeek-dev opened this issue Jan 25, 2019 · 4 comments

Comments

@vingeek-dev
Copy link

monaco-editor version:
0.15.6

Browser:
All

OS:
All

Hi, i would to know how to translate/localize Monaco Editor strings.
I see an example that use this config but when i try to implementing it on my application it load the right "editor.main.nls.lang.js" but still remain in English.

I haven't found no more documentation that describe that.

@lwinhong
Copy link

lwinhong commented Jan 26, 2019

image

require.config({ paths: { 'vs': "monaco-editor/vs" } }); require.config({ 'vs/nls': { availableLanguages: { '*': "zh-cn" } } });

like this

@vingeek-dev
Copy link
Author

Hi @lwinhong, i've been tried this config but it doesn't work. The editor was shown in english.
I checked that all "editor.main.nls.lang.js" files have only english strings.

@lwinhong
Copy link

Yes, after 0.15.0, it’s maybe a bug.

@alexdima
Copy link
Member

Let's track in #822

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants