Internationalization
Swedish (sv) is the sole enabled locale. Existing English password-recovery
copy remains English until explicitly translated; this is not an English locale
or a claim that multilingual support is complete. Do not enable a language
before all of its user-visible copy and locale formats have been reviewed.
Use scoped I18n keys for all new user-visible text, including labels, titles, flash messages, accessible names and mail. Locale files are grouped by shared UI, identity, Visitor Incident Management, developer preview and Rails formats. Use interpolation and plural forms, not sentence fragments or string concatenation. Never translate user-entered names or message content as UI copy.
Requests use I18n.with_locale to scope language to a request. Staff, kiosks,
jobs and SMS recipients may eventually have different language preferences;
none is inferred from the tenant today. When adding a background job or mail
delivery, explicitly test that its locale is captured and restored. Time zone
is a separate decision from language: store timestamps in UTC and choose an
appropriate display zone when that product requirement is implemented.
Tests and development raise on missing view/controller translations. Add tests for new keys, plural counts, localized dates and request/job locale isolation. Do not silently rely on production fallback as evidence a translation is ready.