Bundling the User Interface localizations for TinyMCE
Using community localizations
Using the community language packs
To use change the user interface language using a community language pack:
-
Download the language pack from the Tiny Community Language Packages download page.
-
Unzip and import/require the language file.
-
Set the
language
option in your TinyMCE configuration to the language code, matching the filename on the language pack. For example: If the language pack has the filenamesv_SE.js
, then setlanguage: 'sv_SE'
, -
Confirm that the language has been set successfully by loading TinyMCE.
The language code set in the TinyMCE configuration must match the filename of the language file. If the language file is not found, TinyMCE will not load. |
If a language you need is not available, you may wish to translate it yourself. To contribute to translating TinyMCE, go to our Transifex translation page and sign up, then request to join a team or create a new team if your language are not listed.
Using premium self-hosted localizations
Overview
This section shows the files required for each TinyMCE component. The file paths shown are relative to the root TinyMCE package directory, where tinymce.min.js
is stored. For example:
./ ├── icons/ ├── jquery.tinymce.min.js ├── langs/ ├── license.txt ├── plugins/ ├── readme.txt ├── skins/ ├── themes/ ├── tinymce.d.ts ├── tinymce.js ├── tinymce.min.js └── version.txt
The following table shows examples of the syntax used to bundle the following example localization file:
./langs/sv_SE.js
Module Syntax | Source | Example |
---|---|---|
ES6+ |
npm |
|
|
|
|
Common JS |
npm |
|
|
|
Supported Languages
Language | Code | Filename |
---|---|---|
Arabic |
ar |
|
Basque |
eu |
|
Bulgarian (Bulgaria) |
bg_BG |
|
Catalan |
ca |
|
Chinese (China) |
zh_CN |
|
Chinese (Taiwan) |
zh_TW |
|
Croatian |
hr |
|
Czech |
cs |
|
Danish |
da |
|
Dutch |
nl |
|
Finnish |
fi |
|
French (France) |
fr_FR |
|
German |
de |
|
Greek |
el |
|
Hebrew (Israel) |
he_IL |
|
Hungarian (Hungary) |
hu_HU |
|
Indonesian |
id |
|
Italian |
it |
|
Japanese |
ja |
|
Kazakh |
kk |
|
Korean (Korea) |
ko_KR |
|
Norwegian Bokmål (Norway) |
nb_NO |
|
Persian |
fa |
|
Polish |
pl |
|
Portuguese (Brazil) |
pt_BR |
|
Portuguese (Portugal) |
pt_PT |
|
Romanian |
ro |
|
Russian |
ru |
|
Slovak |
sk |
|
Slovenian (Slovenia) |
sl_SI |
|
Spanish |
es |
|
Spanish (Mexico) |
es_MX |
|
Swedish (Sweden) |
sv_SE |
|
Thai (Thailand) |
th_TH |
|
Turkish |
tr |
|
Ukrainian |
uk |
|