You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Justin Coyne edited this page Nov 10, 2021
·
6 revisions
Blacklight uses the Rails i18n framework to provide multilingual version of most text in the Blacklight default templates. Blacklight ships with a set of English and French translations in config/locales.
In addition to multilingual support, developments can also e.g. customize the English strings in Blacklight-based applications, which provides a way to change text without overriding templates and partials.
And then everywhere Blacklight views show the application name, it will use your label ("My Blacklight Application") instead of ours ("Blacklight").
Those wanting to use Blacklight internationalization will also want to add the rails-i18n gem to their application. This gem provides additional Rails locale data not found in Blacklight.
There are other i18n tricks (that we use) covered in the Rails i18n Rails guide, including pluralization, interpolation, etc.