microsoft / microsoft/monaco-editor
Example of how to load monaco editor with different language
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
Is there any example of how to load the monaco editor with different languages besides English?
I found an old comment by alexandrudima referencing the following example but the example is for AMD:
https://github.com/Microsoft/monaco-editor-samples/blob/master/browser-amd-localized/index.html.
I am currently using the JSON worker and I would like messages like "Trailing comma" localized.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked browser-amd-localized/index.html example and compare its AMD setup with the current Monaco Editor loading approach. Check how the JSON worker is configured and determine how localized messages such as "Trailing comma" should be demonstrated. Done means a current example explains loading Monaco with a non-English language and shows localized JSON diagnostics.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation, localization
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100