feat: add locale prefixes to all email template URLs

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 <noreply@anthropic.com>
This commit is contained in:
Knee Cola
2025-12-31 12:09:35 +01:00
parent 494d358130
commit 997f4acf57
6 changed files with 18 additions and 18 deletions

View File

@@ -78,7 +78,7 @@
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="text-align: center; padding: 0 0 30px 0;">
<a href="https://rezije.app/email/verify/${shareId}"
<a href="https://rezije.app/en/email/verify/${shareId}"
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6 ; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
I accept
</a>
@@ -90,7 +90,7 @@
Or copy and paste this link into your browser:
</p>
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
https://rezije.app/email/verify/${shareId}
https://rezije.app/en/email/verify/${shareId}
</p>
<!-- Divider -->

View File

@@ -78,7 +78,7 @@
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="text-align: center; padding: 0 0 30px 0;">
<a href="https://rezije.app/email/verify/${shareId}"
<a href="https://rezije.app/hr/email/verify/${shareId}"
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6 ; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
Prihvaćam
</a>
@@ -90,7 +90,7 @@
Ili kopirajte i zalijepite ovaj link u svoj preglednik:
</p>
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
https://rezije.app/email/verify/${shareId}
https://rezije.app/hr/email/verify/${shareId}
</p>
<!-- Divider -->

View File

@@ -76,7 +76,7 @@
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="text-align: center; padding: 0 0 30px 0;">
<a href="https://rezije.app/share/rent-due/${shareId}"
<a href="https://rezije.app/en/share/rent-due/${shareId}"
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
View Payment Details
</a>
@@ -88,7 +88,7 @@
Or copy and paste this link into your browser:
</p>
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
https://rezije.app/share/rent-due/${shareId}
https://rezije.app/en/share/rent-due/${shareId}
</p>
<!-- Divider -->
@@ -116,12 +116,12 @@
<tr>
<td style="padding: 20px 30px; text-align: center; background-color: #F9FAFB; border-radius: 0 0 8px 8px;">
<p style="margin: 0 0 10px 0; font-size: 14px; color: #666666;">
<a href="https://rezije.app/email/unsubscribe/${shareId}" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
<a href="https://rezije.app/en/email/unsubscribe/${shareId}" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
Unsubscribe from these emails
</a>
</p>
<p style="margin: 0 0 10px 0; font-size: 14px; color: #666666;">
<a href="https://rezije.app" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
<a href="https://rezije.app/en" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
Visit rezije.app
</a>
</p>

View File

@@ -76,7 +76,7 @@
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="text-align: center; padding: 0 0 30px 0;">
<a href="https://rezije.app/share/rent-due/${shareId}"
<a href="https://rezije.app/hr/share/rent-due/${shareId}"
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
Pogledaj detalje uplate
</a>
@@ -88,7 +88,7 @@
Ili kopirajte i zalijepite ovaj link u svoj preglednik:
</p>
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
https://rezije.app/share/rent-due/${shareId}
https://rezije.app/hr/share/rent-due/${shareId}
</p>
<!-- Divider -->
@@ -116,7 +116,7 @@
<tr>
<td style="padding: 20px 30px; text-align: center; background-color: #F9FAFB; border-radius: 0 0 8px 8px;">
<p style="margin: 0 0 10px 0; font-size: 14px; color: #666666;">
<a href="https://rezije.app/email/unsubscribe/${shareId}" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
<a href="https://rezije.app/hr/email/unsubscribe/${shareId}" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
Odjavi se od ovih e-mailova
</a>
</p>

View File

@@ -76,7 +76,7 @@
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="text-align: center; padding: 0 0 30px 0;">
<a href="https://rezije.app/share/bills-due/${shareId}"
<a href="https://rezije.app/en/share/bills-due/${shareId}"
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
View Payment Details
</a>
@@ -88,7 +88,7 @@
Or copy and paste this link into your browser:
</p>
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
https://rezije.app/share/bills-due/${shareId}
https://rezije.app/en/share/bills-due/${shareId}
</p>
<!-- Divider -->
@@ -116,12 +116,12 @@
<tr>
<td style="padding: 20px 30px; text-align: center; background-color: #F9FAFB; border-radius: 0 0 8px 8px;">
<p style="margin: 0 0 10px 0; font-size: 14px; color: #666666;">
<a href="https://rezije.app/email/unsubscribe/${shareId}" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
<a href="https://rezije.app/en/email/unsubscribe/${shareId}" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
Unsubscribe from these emails
</a>
</p>
<p style="margin: 0 0 10px 0; font-size: 14px; color: #666666;">
<a href="https://rezije.app" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
<a href="https://rezije.app/en" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
Visit rezije.app
</a>
</p>

View File

@@ -76,7 +76,7 @@
<table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td style="text-align: center; padding: 0 0 30px 0;">
<a href="https://rezije.app/share/bills-due/${shareId}"
<a href="https://rezije.app/hr/share/bills-due/${shareId}"
style="display: inline-block; padding: 14px 40px; background-color: #5b5ba6; color: #ffffff; text-decoration: none; font-size: 16px; font-weight: bold; border-radius: 6px; border: none;">
Pogledaj detalje uplate
</a>
@@ -88,7 +88,7 @@
Ili kopirajte i zalijepite ovaj link u svoj preglednik:
</p>
<p style="margin: 0 0 20px 0; font-size: 13px; line-height: 20px; color: #0070F3; text-align: center; word-break: break-all;">
https://rezije.app/share/bills-due/${shareId}
https://rezije.app/hr/share/bills-due/${shareId}
</p>
<!-- Divider -->
@@ -116,7 +116,7 @@
<tr>
<td style="padding: 20px 30px; text-align: center; background-color: #F9FAFB; border-radius: 0 0 8px 8px;">
<p style="margin: 0 0 10px 0; font-size: 14px; color: #666666;">
<a href="https://rezije.app/email/unsubscribe/${shareId}" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
<a href="https://rezije.app/hr/email/unsubscribe/${shareId}" target="_blank" style="color: #0070F3; text-decoration: none; font-weight: bold;">
Odjavi se od ovih e-mailova
</a>
</p>