Include libraries with lang file. eg: muds-da-DK.min.js.
<!-- Include the MUDS stylesheet --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/muds.min.css"> <!-- Create the editor container --> <textarea id="editor"></textarea> <!-- Include the MUDS library --> <script src="https://cdn.jsdelivr.net/npm/[email protected]/muds.min.js"></script> <!-- Include language file --> <script src="https://cdn.jsdelivr.net/npm/[email protected]/muds-da-DK.min.js"></script> <!-- Initialize MUDS editor --> <script> var muds = new muds({ selector: 'editor', language: 'da-DK' }); </script>
Language | Option | CDN |
---|---|---|
Danish | 'da-DK' | https://cdn.jsdelivr.net/npm/[email protected]/muds-da-DK.min.js |
German | 'de-DE' | https://cdn.jsdelivr.net/npm/[email protected]/muds-de-DE.min.js |
Is your language not yet supported? Download the template and translate it yourself.