Skip to content

Commit edc4ca4

Browse files
authored
Merge pull request #10 from CodinGame/add-load-language-function
Add load language function
2 parents b076caf + b84aecf commit edc4ca4

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codingame/monaco-editor-react",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"description": "Monaco Editor React component",
55
"scripts": {
66
"build": "tsc",
@@ -19,7 +19,7 @@
1919
],
2020
"types": "dist/index.d.ts",
2121
"dependencies": {
22-
"@codingame/monaco-editor-wrapper": "^1.6.0",
22+
"@codingame/monaco-editor-wrapper": "^1.8.1",
2323
"deep-equal": "^2.0.5",
2424
"lodash.debounce": "^4.0.8"
2525
},

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { monaco, updateKeybindings, updateUserConfiguration } from '@codingame/monaco-editor-wrapper'
1+
import { loadLanguage, monaco, updateKeybindings, updateUserConfiguration } from '@codingame/monaco-editor-wrapper'
22
import { useThemeData, useUserConfiguration } from './hooks'
33
import MonacoEditor, { MonacoEditorProps } from './MonacoEditor'
44

@@ -8,7 +8,8 @@ export {
88
useThemeData,
99
useUserConfiguration,
1010
updateKeybindings,
11-
updateUserConfiguration
11+
updateUserConfiguration,
12+
loadLanguage
1213
}
1314
export type {
1415
MonacoEditorProps

0 commit comments

Comments
 (0)