Skip to content
Bess Sadler edited this page Jul 12, 2022 · 6 revisions

Spotlight v2.0 provides new support for exhibit administrators and curators to create exhibits in multiple languages.

Spotlight Languages Dashboard

Translations can be managed for many user facing components within the Spotlight administrative dashboard directly. Multi language translations are now available for:

  • general exhibit labels
  • metadata field labels
  • search related field labels
  • browse category fields
  • home, feature, and about pages

Spotlight Translations Dashboard

Technical approach

Spotlight's translations uses Rails i18n with an optional database backed backend, i18n-active_record. For adopters not using multilingual Exhibits, it is recommended to not change the I18n.backend as it is in config/initializers/translation.rb

Configuration

Spotlight v2.0 comes configured with ten languages out of the box, [de, en, es, fr, hu, it, nl, pt-BR, sq, zh]. These are the languages chosen, only because they are the defaults available from Blacklight at the time of this feature development. To remove or add to this list, configure your config/application.rb by setting the following:

# Setting English and Danish to be the only available languages
config.i18n_locales = {
  da: 'Dansk',
  en: 'English'
}

After doing this, you will likely also need to provide additional locales for Spotlight and other dependencies for your added language. Spotlight only has locale files available in English, but these can be can be translated to another language. Any additional language translations are most welcome as a contribution to the project.

Translations in other projects

Spotlight uses several other projects which may also need translations to take full advantage of Spotlight's internationalization.