question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to localize in esm?

See original GitHub issue

monaco-editor version: 0.17.1 Browser:: Google Chrome 75.0.3770.142 OS: windows 10

I find an localization demo by using amd Monaco Editor Localization Sample, but how can I make localization by using esm ? Is here any example ?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:13
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
poerlangcommented, Apr 13, 2022

When you use vite + vue3 ,try this one:

https://www.npmjs.com/package/@monaco-editor/loader

it work for me.

config like below:

loader.config({ paths: { vs: 'monaco-editor/min/vs' } });  // copy monaco-editor from /node_modules to  /public 
loader.config({
    'vs/nls': {
        availableLanguages: { '*': 'de' }
        // availableLanguages: { '*': 'zh-cn' }
    }
})

@ailongfei @izhangchao

2reactions
peachtangcommented, Mar 12, 2021

@wang12124468 I don’t have any effect using this method (monaco-editor-esm-webpack-plugin)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enderal:Localization - SureAI Wiki
In The Elder Scrolls V: Skyrim Bethesda introduced a new way to localize their Master (.esm) and Slave/Plug-In (.esp) files - the so-called ......
Read more >
JavaScript localization: A step-by-step introductory guide - locize
First install the dependencies, use the following npm package or use a script tag load umd, esm or cjs from unkpg or cdnjs.com...
Read more >
ESM-CT: a precise method for localization of DBS ... - PubMed
New method: We developed a semi-automated method, Electrode Shaft Modeling in CT images (ESM-CT) to reconstruct DBS lead trajectories and contact locations.
Read more >
On co-operative localization strategies using ESM & radar on ...
On co-operative localization strategies using ESM & radar on board airborne platforms ; INSPEC Accession Number: 12589447 ; DOI: 10.1109/CIE-Radar.2011.6159462.
Read more >
CVL User's Guide - How to Localize the Resources
To localize resource files, you must copy each Cognex-supplied English-language DLL to a file with a suffix that identifies the locale.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found