Add i18n (RU/EN), dark/light themes, enhanced tracker/target forms (Phase 7a)
Some checks failed
Validate / Hassfest (push) Has been cancelled

Frontend enhancements:
- i18n: Full Russian and English translations (~170 keys each),
  language switcher in sidebar and login page, auto-detect from
  browser, persists to localStorage
- Themes: Light/dark mode with CSS custom properties, system
  preference detection, toggle in sidebar header, smooth transitions
- Dark theme: Full color palette (background, card, muted, border,
  success, warning, error variants)

Enhanced forms:
- Tracker creation: asset type filtering (images/videos), favorites
  only, include people/details toggles, sort by/order selects,
  max assets to show
- Target creation: Telegram media settings (collapsible) with
  max media, group size, chunk delay, max asset size, URL preview
  disable, large photos as documents
- Template creation: event_type selector (all/added/removed/renamed/deleted)

All pages use t() for translations, var(--color-*) for theme-safe
colors, and proper label-for-input associations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 15:44:32 +03:00
parent 1ad9b8af1d
commit 2aa9b8939d
14 changed files with 827 additions and 327 deletions

View File

@@ -0,0 +1,176 @@
{
"app": {
"name": "Immich Watcher",
"tagline": "Album notifications"
},
"nav": {
"dashboard": "Dashboard",
"servers": "Servers",
"trackers": "Trackers",
"templates": "Templates",
"targets": "Targets",
"users": "Users",
"logout": "Logout"
},
"auth": {
"signIn": "Sign in",
"signInTitle": "Sign in to your account",
"signingIn": "Signing in...",
"username": "Username",
"password": "Password",
"confirmPassword": "Confirm password",
"setupTitle": "Welcome",
"setupDescription": "Create your admin account to get started",
"createAccount": "Create account",
"creatingAccount": "Creating account...",
"passwordMismatch": "Passwords do not match",
"passwordTooShort": "Password must be at least 6 characters",
"loginWithImmich": "Login with Immich",
"or": "or"
},
"dashboard": {
"title": "Dashboard",
"description": "Overview of your Immich Watcher setup",
"servers": "Servers",
"activeTrackers": "Active Trackers",
"targets": "Targets",
"recentEvents": "Recent Events",
"noEvents": "No events yet. Create a tracker to start monitoring albums.",
"loading": "Loading..."
},
"servers": {
"title": "Servers",
"description": "Manage Immich server connections",
"addServer": "Add Server",
"cancel": "Cancel",
"name": "Name",
"url": "Immich URL",
"urlPlaceholder": "http://immich:2283",
"apiKey": "API Key",
"connecting": "Connecting...",
"noServers": "No servers configured yet.",
"delete": "Delete",
"confirmDelete": "Delete this server?"
},
"trackers": {
"title": "Trackers",
"description": "Monitor albums for changes",
"newTracker": "New Tracker",
"cancel": "Cancel",
"name": "Name",
"namePlaceholder": "Family photos tracker",
"server": "Server",
"selectServer": "Select server...",
"albums": "Albums",
"eventTypes": "Event Types",
"notificationTargets": "Notification Targets",
"scanInterval": "Scan Interval (seconds)",
"createTracker": "Create Tracker",
"noTrackers": "No trackers yet. Add a server first, then create a tracker.",
"active": "Active",
"paused": "Paused",
"pause": "Pause",
"resume": "Resume",
"delete": "Delete",
"confirmDelete": "Delete this tracker?",
"albums_count": "album(s)",
"every": "every",
"trackImages": "Track images",
"trackVideos": "Track videos",
"favoritesOnly": "Favorites only",
"includePeople": "Include people in notifications",
"includeAssetDetails": "Include asset details",
"maxAssetsToShow": "Max assets to show",
"sortBy": "Sort by",
"sortOrder": "Sort order",
"sortNone": "Original order",
"sortDate": "Date",
"sortRating": "Rating",
"sortName": "Name",
"sortRandom": "Random",
"ascending": "Ascending",
"descending": "Descending",
"quietHoursStart": "Quiet hours start",
"quietHoursEnd": "Quiet hours end"
},
"templates": {
"title": "Templates",
"description": "Jinja2 message templates for notifications",
"newTemplate": "New Template",
"cancel": "Cancel",
"name": "Name",
"body": "Template Body (Jinja2)",
"variables": "Variables",
"preview": "Preview",
"edit": "Edit",
"delete": "Delete",
"confirmDelete": "Delete this template?",
"create": "Create Template",
"update": "Update Template",
"noTemplates": "No templates yet. A default template will be used if none is configured.",
"eventType": "Event type",
"allEvents": "All events",
"assetsAdded": "Assets added",
"assetsRemoved": "Assets removed",
"albumRenamed": "Album renamed",
"albumDeleted": "Album deleted"
},
"targets": {
"title": "Targets",
"description": "Notification destinations (Telegram, webhooks)",
"addTarget": "Add Target",
"cancel": "Cancel",
"type": "Type",
"name": "Name",
"namePlaceholder": "My notifications",
"botToken": "Bot Token",
"chatId": "Chat ID",
"webhookUrl": "Webhook URL",
"create": "Add Target",
"test": "Test",
"delete": "Delete",
"confirmDelete": "Delete this target?",
"noTargets": "No notification targets configured yet.",
"testSent": "Test sent successfully!",
"aiCaptions": "Enable AI captions",
"telegramSettings": "Telegram Settings",
"maxMedia": "Max media to send",
"maxGroupSize": "Max group size",
"chunkDelay": "Delay between groups (ms)",
"maxAssetSize": "Max asset size (MB)",
"videoWarning": "Video size warning",
"disableUrlPreview": "Disable link previews",
"sendLargeAsDocuments": "Send large photos as documents"
},
"users": {
"title": "Users",
"description": "Manage user accounts (admin only)",
"addUser": "Add User",
"cancel": "Cancel",
"username": "Username",
"password": "Password",
"role": "Role",
"roleUser": "User",
"roleAdmin": "Admin",
"create": "Create User",
"delete": "Delete",
"confirmDelete": "Delete this user?",
"joined": "joined"
},
"common": {
"loading": "Loading...",
"save": "Save",
"cancel": "Cancel",
"delete": "Delete",
"edit": "Edit",
"close": "Close",
"confirm": "Confirm",
"error": "Error",
"success": "Success",
"language": "Language",
"theme": "Theme",
"light": "Light",
"dark": "Dark",
"system": "System"
}
}