Brightspot CMS Developer Guide

Installing additional dictionaries


Brightspot comes with generic English and Spanish dictionaries for spell checking. You need to install additional dictionaries if you want to use region-specific spelling, such as UK English or Mexican Spanish, or if you want to spell check in a language other than English or Spanish.

To install an additional dictionary:

  1. Download or create the Hunspell dictionary, both a .dic file and an .afffile. Give each file a base name HunspellDictionary_xx.

    • The last two letters of the base name must be a language code that Java recognizes. For a list of two-letter language codes, see List of ISO 639-1 codes.
    • Example: HunspellDictionary_fr.dic and HunspellDictionary_fr.aff
    • Installing a dictionary HunspellDictionary_en replaces Brightspot’s internal US English dictionary.
  2. Place the files in cms/hunspell/src/main/resources/.
  3. Rebuild your Brightspot project.

Brightspot uses the installed dictionary for users with the matching locale. For example, if you installed a dictionary HunspellDictionary_fr.dic, and a user’s locale is French, Brightspot spell checks the user’s text in French. If a user selects a locale for which there is no matching dictionary, spelling falls back to the browser (which has its own rules for spell checking).

See also:

Previous Topic
Localizing published websites
Next Topic
Formatting dates using view models
Was this topic helpful?
Thanks for your feedback.
The elements that get you up and running in a matter of days, from pre-built content types, to modules, to landing pages.

Content types
Modules
Landing pages
Everything you need to manage and administer content within Brightspot CMS, including plug-and-play integrations.

Dashboards
Publishing
Workflows
Admin configurations
A guide for installing, supporting and administering code on the Brightspot platform, including integrations requiring developer support to use.

Field types
Content modeling
Rich-text elements
Images