From 38b3663d8b7858ba77181c19385e013fab6e3fd8 Mon Sep 17 00:00:00 2001
From: bwees <brandonwees@gmail.com>
Date: Thu, 22 May 2025 21:52:43 -0500
Subject: [PATCH] add setting switch

this isnt bound to anything yet
---
 i18n/en.json                                               | 2 ++
 .../lib/components/user-settings-page/app-settings.svelte  | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/i18n/en.json b/i18n/en.json
index 9bfadc8e63..8df434886f 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -829,6 +829,8 @@
   "empty_trash_confirmation": "Are you sure you want to empty the trash? This will remove all the assets in trash permanently from Immich.\nYou cannot undo this action!",
   "enable": "Enable",
   "enable_biometric_auth_description": "Enter your PIN code to enable biometric authentication",
+  "enable_gcast": "Enable Google Cast",
+  "enable_gcast_description": "Stream your images and video to a Google Cast enabled device. This feature loads external resources from Google in order to work.",
   "enabled": "Enabled",
   "end_date": "End date",
   "enqueued": "Enqueued",
diff --git a/web/src/lib/components/user-settings-page/app-settings.svelte b/web/src/lib/components/user-settings-page/app-settings.svelte
index f1d8e14787..3b387273fa 100644
--- a/web/src/lib/components/user-settings-page/app-settings.svelte
+++ b/web/src/lib/components/user-settings-page/app-settings.svelte
@@ -168,6 +168,13 @@
           bind:checked={$showDeleteModal}
         />
       </div>
+      <div class="ms-4">
+        <SettingSwitch
+          title={$t('enable_gcast')}
+          subtitle={$t('enable_gcast_description')}
+          bind:checked={$gcastEnabled}
+        />
+      </div>
     </div>
   </div>
 </section>