Translations
LesliBell owns user-facing labels below the lesli_bell namespace. It currently ships locale files for English, Spanish, French, Italian, and Portuguese under config/locales.
Add labels by feature bucket:
en:
lesli_bell:
notifications:
title: "Notifications"
empty: "You have no notifications"
announcements:
title: "Announcements"
Use the complete path:
<%= I18n.t("lesli_bell.notifications.title") %>
Announcement administration and dismissal labels are translated in English and Spanish. The existing navigation and notification views still contain hard-coded English labels. A translation change must therefore include both the new keys and replacement of the corresponding interface labels. Keep notification and announcement content supplied by callers separate from interface labels owned by the engine.
When LesliBabel is installed, scan and import local values with:
bin/rails lesli_babel:scan
bin/rails lesli_babel:import
Add the same key to every supported locale and preserve interpolation tokens. The engine locale files remain the version-controlled source of truth.
See Frontend for the view and asset workflow that applies when replacing hard-coded labels.
Last Update: 2026/11/13