iachat/app/views
Gabriel Jablonski 053e684261
feat(mailer): add i18n support for transactional emails with pt-BR (#255)
* feat(mailer): add i18n support for all transactional emails with pt-BR translations

- Create Liquid i18n filter (LiquidFilters::I18nFilter) exposing I18n.t() as `t` filter
  with interpolation support via positional args
- Replace hardcoded English strings in all 26 Liquid email templates with i18n keys
- Replace hardcoded English strings in all 5 Devise ERB email templates (OSS + enterprise)
  with t() calls, using raw output (<%==) to prevent HTML-encoding of apostrophes
- Translate all mailer subjects to use I18n.t() for locale-aware rendering
- Add comprehensive pt-BR translations for all transactional emails
- Add SSO-specific i18n keys for enterprise confirmation instructions
- Fix ApplicationRecord#to_drop to walk STI hierarchy (e.g. SuperAdmin -> UserDrop)

* fix: address CodeRabbit review feedback

- Use _html suffix for Devise translation keys to prevent XSS while
  keeping apostrophes unencoded (Rails escapes interpolations automatically)
- Replace hardcoded English in SLA templates with full_body i18n keys
- Fix _target="blank" typo to target="_blank" in attachment links
- Add i18n for tiktok_disconnect subject and create liquid template
- Extract brand_name to private method in AccountNotificationMailer

* fix: address round 2 review feedback

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 15:48:52 -03:00
..
android_app chore: Universal Linking for Android (#2324) 2021-06-02 08:46:45 -07:00
api Merge branch 'chatwoot/develop' into chore/merge-upstream-4.12.0 2026-03-20 00:27:45 -03:00
apple_app chore: Configure iOS universal linking (#10651) 2025-01-08 21:25:11 +05:30
dashboard Initial Commit 2019-08-14 15:18:44 +05:30
devise feat(mailer): add i18n support for transactional emails with pt-BR (#255) 2026-04-03 15:48:52 -03:00
fields refactor: extract custom attribute methods from FilterService (#13743) 2026-03-10 14:15:52 +05:30
icons fix: Broken header in public Help Center portal (#11704) 2025-06-11 15:07:24 -04:00
installation/onboarding fix: onboarding/index.html.erb unclosed HTML tags (#10838) 2025-02-06 09:43:38 +05:30
layouts feat(mailer): add i18n support for transactional emails with pt-BR (#255) 2026-04-03 15:48:52 -03:00
mailers feat(mailer): add i18n support for transactional emails with pt-BR (#255) 2026-04-03 15:48:52 -03:00
microsoft fix: Identity JSON response header (#6326) 2023-02-02 11:01:18 +05:30
platform/api/v1 Merge branch 'chatwoot/develop' into chore/merge-upstream-4.12.0 2026-03-20 00:27:45 -03:00
public/api/v1 Merge branch 'chatwoot/develop' into chore/merge-upstream-4.12.0 2026-03-20 00:27:45 -03:00
super_admin Merge branch 'chatwoot/develop' into chore/merge-upstream-4.12.0 2026-03-20 00:27:45 -03:00
survey/responses feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
widget_tests chore: Remove defer attribute from widget-loader script (#11887) 2025-07-08 15:31:33 +05:30
widgets chore: general improvements (#232) 2026-03-03 14:08:56 -03:00