Custom Languages

  1. Using a translation URL
  2. Using a JSON Object
  3. Sample language file

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

Tip – Make note of the timestamp on the language file, so you know when new languages are available.



https://gist.github.com/8acd472f0867277701e32e6ca6c5e36e.git