Skip to content

Commit d89eb54

Browse files
authored
Fixes #4997 (#5090)
1 parent b3250fa commit d89eb54

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ You will get:
2828

2929
:warning: The monaco editor also ships an `AMD` build for backwards-compatibility reasons, but the `AMD` support is deprecated and will be removed in future versions.
3030

31+
## Localization
32+
33+
To load the editor in a specific language, make sure that the corresponding nls script file is loaded before the main monaco editor script. For example, to load the editor in German, include the following script tag:
34+
```html
35+
<script src="path/to/monaco-editor/esm/nls.messages.de.js"></script>
36+
```
37+
38+
Check the sources for available languages.
39+
3140
## Concepts
3241

3342
Monaco editor is best known for being the text editor that powers VS Code. However, it's a bit more nuanced. Some basic understanding about the underlying concepts is needed to use Monaco editor effectively.

0 commit comments

Comments
 (0)