Bundling the User Interface localizations for OpenTiny
Using community localizations
Using the community language packs
To 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 OpenTiny 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 OpenTiny.
The language code set in the OpenTiny configuration must match the filename of the language file. If the language file is not found, OpenTiny will not load. |
If a language you need is not available, you may wish to translate OpenTiny yourself. To contribute to translating OpenTiny, go to our Crowdin translation page and sign up. Then request to join an existing 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 OpenTiny localization. The file paths shown are relative to the root OpenTiny package directory, where tinymce.min.js
is stored. For example:
./ ├── icons/ ├── langs/ ├── license.txt ├── models/ ├── 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 |
|
Hindi |
hi |
|
Hungarian (Hungary) |
hu_HU |
|
Indonesian |
id |
|
Italian |
it |
|
Japanese |
ja |
|
Kazakh |
kk |
|
Korean (Korea) |
ko_KR |
|
Malay |
ms |
|
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 |
|
Swedish (Sweden) |
sv_SE |
|
Thai (Thailand) |
th_TH |
|
Turkish |
tr |
|
Ukrainian |
uk |
|
Vietnamese |
vi |
|