Translations

LesliContacts should place all user-facing labels below the lesli_contacts namespace. The engine does not yet ship locale files, so create config/locales/translations.<locale>.yml when extracting its current hard-coded interface text.

en:
  lesli_contacts:
    contacts:
      title: "Contacts"
      new: "New contact"
      empty: "No contacts found"

Use complete keys:

<%= I18n.t("lesli_contacts.contacts.title") %>

Add the same key set for every locale supported by the application. Keep contact data entered by users separate from interface translations.

When LesliBabel is installed, register and import the new namespace with:

bin/rails lesli_babel:scan
bin/rails lesli_babel:import

Commit the locale files with the views that consume them. See the engine documentation standard for the shared structure.

 Edit this page

Last Update: 2026/10/06