microsoft / microsoft/monaco-editor

Example of how to load monaco editor with different language

Open
#2,720 8 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request webpack-plugin
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.