Custom Languages
Using a translation URL
You may now override the default BEE Plugin language file by providing a URL to your own translations. This is an advanced feature and will replace all languages used by the editor with the languages defined in the custom file.
var beeConfig = {
uid: config.uid,
...
translationsUrl: 'https://www.yourdomain.com/xx-XX.json',
...
}
Using a JSON Object
The easiest method to override specific text labels is to pass a JSON object in your bee config, which contains the segments of the language file you want to override.
var beeConfig = { uid: config.uid, ... translations: { ... } ... }
Example: overriding the Help icon label in the default toolbar
var beeConfig = {
uid: config.uid,
...
translations: {
"bee-common-top-bar": {
help: "Support"
},
}
...
}
Example: overriding the Rows tab label in the sidebar
var beeConfig = {
uid: config.uid,
...
translations: {
"bee-common-widget-bar": {
"structure": "Catalog"
}
},
}
...
}
Sample language file
Check out our Github repository for starter language templates in all supported languages.