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:
@@ -81,6 +81,8 @@ export interface BillingLocation {
|
||||
tenantEmail?: string | null;
|
||||
/** (optional) tenant email status */
|
||||
tenantEmailStatus?: EmailStatus | null;
|
||||
/** (optional) language for tenant notification emails */
|
||||
tenantEmailLanguage?: "hr" | "en" | null;
|
||||
/** (optional) whether to automatically notify tenant */
|
||||
billFwdEnabled?: boolean | null;
|
||||
/** (optional) bill forwarding strategy */
|
||||
|
||||
Reference in New Issue
Block a user