{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/375","repository_url":"https://api.github.com/repos/Microsoft/monaco-editor","labels_url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/375/comments","events_url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/375/events","html_url":"https://github.com/Microsoft/monaco-editor/issues/375","id":209729031,"number":375,"title":"how to change the display languge","user":{"login":"azheng-lee","id":22190564,"avatar_url":"https://avatars1.githubusercontent.com/u/22190564?v=4","gravatar_id":"","url":"https://api.github.com/users/azheng-lee","html_url":"https://github.com/azheng-lee","followers_url":"https://api.github.com/users/azheng-lee/followers","following_url":"https://api.github.com/users/azheng-lee/following{/other_user}","gists_url":"https://api.github.com/users/azheng-lee/gists{/gist_id}","starred_url":"https://api.github.com/users/azheng-lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azheng-lee/subscriptions","organizations_url":"https://api.github.com/users/azheng-lee/orgs","repos_url":"https://api.github.com/users/azheng-lee/repos","events_url":"https://api.github.com/users/azheng-lee/events{/privacy}","received_events_url":"https://api.github.com/users/azheng-lee/received_events","type":"User","site_admin":false},"labels":[{"id":389114681,"url":"https://api.github.com/repos/Microsoft/monaco-editor/labels/question","name":"question","color":"708090","default":true}],"state":"closed","locked":false,"assignee":{"login":"alexandrudima","id":5047891,"avatar_url":"https://avatars3.githubusercontent.com/u/5047891?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandrudima","html_url":"https://github.com/alexandrudima","followers_url":"https://api.github.com/users/alexandrudima/followers","following_url":"https://api.github.com/users/alexandrudima/following{/other_user}","gists_url":"https://api.github.com/users/alexandrudima/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrudima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrudima/subscriptions","organizations_url":"https://api.github.com/users/alexandrudima/orgs","repos_url":"https://api.github.com/users/alexandrudima/repos","events_url":"https://api.github.com/users/alexandrudima/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrudima/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexandrudima","id":5047891,"avatar_url":"https://avatars3.githubusercontent.com/u/5047891?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandrudima","html_url":"https://github.com/alexandrudima","followers_url":"https://api.github.com/users/alexandrudima/followers","following_url":"https://api.github.com/users/alexandrudima/following{/other_user}","gists_url":"https://api.github.com/users/alexandrudima/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrudima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrudima/subscriptions","organizations_url":"https://api.github.com/users/alexandrudima/orgs","repos_url":"https://api.github.com/users/alexandrudima/repos","events_url":"https://api.github.com/users/alexandrudima/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrudima/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-02-23T10:59:45Z","updated_at":"2017-10-07T01:15:55Z","closed_at":"2017-06-08T07:27:22Z","author_association":"NONE","body":"i need to change the display language, don`t know how to do?"},"comment":{"url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/comments/334900902","html_url":"https://github.com/Microsoft/monaco-editor/issues/375#issuecomment-334900902","issue_url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/375","id":334900902,"user":{"login":"datummm","id":15153354,"avatar_url":"https://avatars1.githubusercontent.com/u/15153354?v=4","gravatar_id":"","url":"https://api.github.com/users/datummm","html_url":"https://github.com/datummm","followers_url":"https://api.github.com/users/datummm/followers","following_url":"https://api.github.com/users/datummm/following{/other_user}","gists_url":"https://api.github.com/users/datummm/gists{/gist_id}","starred_url":"https://api.github.com/users/datummm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datummm/subscriptions","organizations_url":"https://api.github.com/users/datummm/orgs","repos_url":"https://api.github.com/users/datummm/repos","events_url":"https://api.github.com/users/datummm/events{/privacy}","received_events_url":"https://api.github.com/users/datummm/received_events","type":"User","site_admin":false},"created_at":"2017-10-07T01:15:55Z","updated_at":"2017-10-07T01:15:55Z","author_association":"NONE","body":"@SoftTimur I believe `monaco.editor.setModelLanguage(editor.getModel(), \"cpp\")` should work as written (note that it is `monaco.editor` and not `monacoeditor`) as long as the `editor` of `editor.getModel()` is an editor instance created by monaco.editor.create();\r\n\r\nIt's confusing because `setModelLanguage` is a function in the `monaco.editor` *module*, and not a method of any particular monaco editor/model *instance*, as some (myself included) would expect."}}
{"actor":{"display_login":"datummm"}}