feat: add language selector for tenant notification emails

Added ability to select the language for automatic notification emails sent to
tenants. Users can choose between Croatian (hr) and English (en). If not set,
defaults to the current UI language.

Changes:
- Add tenantEmailLanguage field to BillingLocation type (shared-code)
- Add language selector fieldset in LocationEditForm below email settings
- Add Zod validation for tenantEmailLanguage in locationActions
- Include field in all database insert and update operations
- Default to current locale if not explicitly set
- Add translation labels for language selector (EN/HR)

This allows tenants to receive bills and notifications in their preferred language
regardless of the landlord's UI language preference.

🤖 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 10:37:14 +01:00
parent 2bc5cad82d
commit 69f891210e
5 changed files with 36 additions and 0 deletions

View File

@@ -205,6 +205,10 @@
"verified": "this e-mail address has been verified",
"unsubscribed": "tenant unsubscribed this address from receiving emails"
},
"notification-language-legend": "NOTIFICATION EMAIL LANGUAGE",
"notification-language-label": "Language for automatic notification emails",
"notification-language-option-hr": "Croatian (Hrvatski)",
"notification-language-option-en": "English",
"warning-missing-tenant-names": "Warning: Tenant first and last name are missing. The 2D barcode will not be displayed to the tenant when they open the shared link until both fields are filled in.",
"save-button": "Save",
"cancel-button": "Cancel",

View File

@@ -204,6 +204,10 @@
"verified": "podstanar je potvrdio ovu e-mail adresu",
"unsubscribed": "podstanar je odjavio ovu e-mail adresu"
},
"notification-language-legend": "JEZIK ZA OBAVIJESTI",
"notification-language-label": "Jezik za automatske obavijesti putem e-maila",
"notification-language-option-hr": "Hrvatski",
"notification-language-option-en": "Engleski (English)",
"warning-missing-tenant-names": "Upozorenje: Ime i prezime podstanara nedostaju. 2D barkod neće biti prikazan podstanaru kada otvori podijeljenu poveznicu dok oba polja ne budu popunjena.",
"save-button": "Spremi",
"cancel-button": "Odbaci",