tinymce / tinymce-docs

TinyMCE Documentation
https://www.tiny.cloud/docs/
Other
86 stars 221 forks source link

I can't find what I'm looking for: configure/localization.md #2404

Open rbuelund opened 2 years ago

rbuelund commented 2 years ago

Is it possible to add several language files to the tinyMCE editor. If you for example have one file for the core and one file for a plugin, eg tinymce/langs/da.js and tinemce/plugins/bootstrap/langs/da.js ?

lnewson commented 2 years ago

Hi @rbuelund, yes it should be possible to do what you want by using the requireLangPack API. The documentation for how to use that API to load translations for a plugin can be found here: https://www.tiny.cloud/docs/tinymce/6/creating-a-plugin/#language-localization