vue-monaco-cdn icon indicating copy to clipboard operation
vue-monaco-cdn copied to clipboard

add locale support

Open transtone opened this issue 3 years ago • 0 comments

https://github.com/microsoft/monaco-editor/blob/main/samples/browser-amd-localized/index.html

add a line after https://github.com/leo-buneev/vue-monaco-cdn/blob/master/src/services/monaco-loader.js#L49 window.require.config({ 'vs/nls': { availableLanguages: { '*': 'de' } } })

          if (loaderPending) {
            window.require.config(config)
            window.require.config({ 'vs/nls': { availableLanguages: { '*': 'de' } } })
            loaderPending = false
          }

will set the nls locale.

transtone avatar Mar 01 '22 08:03 transtone