10. Localize TinyMCE
Localize TinyMCE with global language capabilities.Contribute to this page
As developers, we all hope our projects reach the wider audience, and for many of us, they do. This is why it is vital that TinyMCE is easy to localize its language.
In this section, we show you how to change TinyMCE's user interface to suit your users' preferred language. The settings discussed in this section change the language that toolbar and menubar items, along with tooltips, are rendered in.
Pro tip: Language settings can be controlled in these configuration options: directionality, language and language_url. There is also a Directionality Plugin that adds a toolbar button to control
Download the Tinymce 4 language pack (i18n), which contains the fullset of languages supported by TinyMCE 4.
Note: The TinyMCE 4 community translation packs are no longer maintained
Unpack the language
js file(s) into your
Important: If you don't put the language pack in
langs/, the language settings will not work unless you use the language_url configuration option.
Set the language option in your TinyMCE configuration to the language code in the list on this page.
Confirm that the language has been set successfully by loading TinyMCE.
We have prepared a code snippet below that would set TinyMCE's language to Chinese and text directionality right-to-left.
If you want to try it for yourself, download the TinyMCE 4 language pack, unzip the file and place the
zh_CN.js file in your
tinymce/lang folder. If you don't have TinyMCE setup, you can grab a copy from our downloads page. Follow the Self-hosted install instructions if you're not familiar with setting up TinyMCE locally.
Thanks for the feedback!
Can't find what you're looking for? Let us know.