From 997f4acf575db280ae10b85e08af8ad517ca5c9f Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Wed, 31 Dec 2025 12:09:35 +0100 Subject: [PATCH] feat: add locale prefixes to all email template URLs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated all email templates to include locale prefixes (/en/ or /hr/) in URLs to ensure language consistency when users click email links. Changes: - Email validation templates: /email/verify/ → /{locale}/email/verify/ - Rent due templates: /share/rent-due/ → /{locale}/share/rent-due/ - Bills due templates: /share/bills-due/ → /{locale}/share/bills-due/ - Unsubscribe links: /email/unsubscribe/ → /{locale}/email/unsubscribe/ - Base site links in EN templates: / → /en Benefits: - Users land on pages in the same language as their email - Better UX - no manual language switching needed - Proper i18n implementation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .../email-template--email-validation--en.html | 4 ++-- .../email-template--email-validation--hr.html | 4 ++-- .../email-templates/email-template--rent-due--en.html | 8 ++++---- .../email-templates/email-template--rent-due--hr.html | 6 +++--- .../email-template--util-bills-due--en.html | 8 ++++---- .../email-template--util-bills-due--hr.html | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/email-worker/email-templates/email-template--email-validation--en.html b/email-worker/email-templates/email-template--email-validation--en.html index 28d6dc0..4315d81 100644 --- a/email-worker/email-templates/email-template--email-validation--en.html +++ b/email-worker/email-templates/email-template--email-validation--en.html @@ -78,7 +78,7 @@
- I accept @@ -90,7 +90,7 @@ Or copy and paste this link into your browser:

- https://rezije.app/email/verify/${shareId} + https://rezije.app/en/email/verify/${shareId}

diff --git a/email-worker/email-templates/email-template--email-validation--hr.html b/email-worker/email-templates/email-template--email-validation--hr.html index 97e8ff0..33ded13 100644 --- a/email-worker/email-templates/email-template--email-validation--hr.html +++ b/email-worker/email-templates/email-template--email-validation--hr.html @@ -78,7 +78,7 @@
- Prihvaćam @@ -90,7 +90,7 @@ Ili kopirajte i zalijepite ovaj link u svoj preglednik:

- https://rezije.app/email/verify/${shareId} + https://rezije.app/hr/email/verify/${shareId}

diff --git a/email-worker/email-templates/email-template--rent-due--en.html b/email-worker/email-templates/email-template--rent-due--en.html index 8941b7f..7ea5f95 100644 --- a/email-worker/email-templates/email-template--rent-due--en.html +++ b/email-worker/email-templates/email-template--rent-due--en.html @@ -76,7 +76,7 @@
- View Payment Details @@ -88,7 +88,7 @@ Or copy and paste this link into your browser:

- https://rezije.app/share/rent-due/${shareId} + https://rezije.app/en/share/rent-due/${shareId}

@@ -116,12 +116,12 @@

- + Unsubscribe from these emails

- + Visit rezije.app

diff --git a/email-worker/email-templates/email-template--rent-due--hr.html b/email-worker/email-templates/email-template--rent-due--hr.html index 4b939b2..c6c59b1 100644 --- a/email-worker/email-templates/email-template--rent-due--hr.html +++ b/email-worker/email-templates/email-template--rent-due--hr.html @@ -76,7 +76,7 @@
- Pogledaj detalje uplate @@ -88,7 +88,7 @@ Ili kopirajte i zalijepite ovaj link u svoj preglednik:

- https://rezije.app/share/rent-due/${shareId} + https://rezije.app/hr/share/rent-due/${shareId}

@@ -116,7 +116,7 @@

- + Odjavi se od ovih e-mailova

diff --git a/email-worker/email-templates/email-template--util-bills-due--en.html b/email-worker/email-templates/email-template--util-bills-due--en.html index 145d130..f4c3f73 100644 --- a/email-worker/email-templates/email-template--util-bills-due--en.html +++ b/email-worker/email-templates/email-template--util-bills-due--en.html @@ -76,7 +76,7 @@
- View Payment Details @@ -88,7 +88,7 @@ Or copy and paste this link into your browser:

- https://rezije.app/share/bills-due/${shareId} + https://rezije.app/en/share/bills-due/${shareId}

@@ -116,12 +116,12 @@

- + Unsubscribe from these emails

- + Visit rezije.app

diff --git a/email-worker/email-templates/email-template--util-bills-due--hr.html b/email-worker/email-templates/email-template--util-bills-due--hr.html index 96be63f..ea1d5ea 100644 --- a/email-worker/email-templates/email-template--util-bills-due--hr.html +++ b/email-worker/email-templates/email-template--util-bills-due--hr.html @@ -76,7 +76,7 @@
- Pogledaj detalje uplate @@ -88,7 +88,7 @@ Ili kopirajte i zalijepite ovaj link u svoj preglednik:

- https://rezije.app/share/bills-due/${shareId} + https://rezije.app/hr/share/bills-due/${shareId}

@@ -116,7 +116,7 @@

- + Odjavi se od ovih e-mailova