diff --git a/DynamicIsland/components/Onboarding/MusicControllerSelectionView.swift b/DynamicIsland/components/Onboarding/MusicControllerSelectionView.swift index 082e428..b3dc6d0 100644 --- a/DynamicIsland/components/Onboarding/MusicControllerSelectionView.swift +++ b/DynamicIsland/components/Onboarding/MusicControllerSelectionView.swift @@ -136,13 +136,13 @@ extension MediaControllerType { var description: String { switch self { case .nowPlaying: - return "Works with most media apps, including browsers, to detect what's playing. Note: This may be removed in a future macOS version." + return String(localized: "Works with most media apps, including browsers, to detect what's playing. Note: This may be removed in a future macOS version.") case .spotify: - return "Connects directly to the Spotify app." + return String(localized: "Connects directly to the Spotify app.") case .appleMusic: - return "Connects directly to the Apple Music app." + return String(localized: "Connects directly to the Apple Music app.") case .youtubeMusic: - return "Requires a third-party client with API plugin enabled." + return String(localized: "Requires a third-party client with API plugin enabled.") } } } diff --git a/DynamicIsland/components/Onboarding/OnboardingView.swift b/DynamicIsland/components/Onboarding/OnboardingView.swift index 7c6988b..bed1fd7 100644 --- a/DynamicIsland/components/Onboarding/OnboardingView.swift +++ b/DynamicIsland/components/Onboarding/OnboardingView.swift @@ -53,9 +53,9 @@ struct OnboardingView: View { case .cameraPermission: PermissionRequestView( icon: Image(systemName: "camera.fill"), - title: "Enable Camera Access", - description: "Atoll includes a mirror feature that lets you quickly check your appearance using your camera, right from the notch. Camera access is required only to show this live preview. You can turn the mirror feature on or off at any time in the app.", - privacyNote: "Your camera is never used without your consent, and nothing is recorded or stored.", + title: String(localized: "Enable Camera Access"), + description: String(localized: "Atoll includes a mirror feature that lets you quickly check your appearance using your camera, right from the notch. Camera access is required only to show this live preview. You can turn the mirror feature on or off at any time in the app."), + privacyNote: String(localized: "Your camera is never used without your consent, and nothing is recorded or stored."), onAllow: { Task { await requestCameraPermission() @@ -75,9 +75,9 @@ struct OnboardingView: View { case .calendarPermission: PermissionRequestView( icon: Image(systemName: "calendar"), - title: "Enable Calendar Access", - description: "Atoll can show all your upcoming events in one place. Access to your calendar is needed to display your schedule.", - privacyNote: "Your calendar data is only used to show your events and is never shared.", + title: String(localized: "Enable Calendar Access"), + description: String(localized: "Atoll can show all your upcoming events in one place. Access to your calendar is needed to display your schedule."), + privacyNote: String(localized: "Your calendar data is only used to show your events and is never shared."), onAllow: { Task { await requestCalendarPermission() diff --git a/DynamicIsland/components/Onboarding/ProfileSelectionView.swift b/DynamicIsland/components/Onboarding/ProfileSelectionView.swift index 564d351..92b6594 100644 --- a/DynamicIsland/components/Onboarding/ProfileSelectionView.swift +++ b/DynamicIsland/components/Onboarding/ProfileSelectionView.swift @@ -34,30 +34,30 @@ struct ProfileSelectionView: View { let profiles: [UserProfile] = [ UserProfile( id: "developer", - name: "Developer", + name: String(localized: "Developer"), icon: "terminal.fill", - description: "Code and debug with color picker, stats monitoring, and screen assistant.", + description: String(localized: "Code and debug with color picker, stats monitoring, and screen assistant."), gradient: [Color.blue, Color.purple] ), UserProfile( id: "designer", - name: "Designer", + name: String(localized: "Designer"), icon: "paintbrush.fill", - description: "Create and design with color picker, mirror, and visual effects.", + description: String(localized: "Create and design with color picker, mirror, and visual effects."), gradient: [Color.pink, Color.orange] ), UserProfile( id: "lightuse", - name: "Light Use", + name: String(localized: "Light Use"), icon: "sparkles", - description: "Simple and minimal interface with just the essentials for everyday tasks.", + description: String(localized: "Simple and minimal interface with just the essentials for everyday tasks."), gradient: [Color.green, Color.mint] ), UserProfile( id: "student", - name: "Student", + name: String(localized: "Student"), icon: "book.fill", - description: "Stay organized with calendar, timer, and battery monitoring.", + description: String(localized: "Stay organized with calendar, timer, and battery monitoring."), gradient: [Color.indigo, Color.cyan] ) ] diff --git a/DynamicIsland/components/Settings/SettingsView.swift b/DynamicIsland/components/Settings/SettingsView.swift index 14a4f8d..29660ab 100644 --- a/DynamicIsland/components/Settings/SettingsView.swift +++ b/DynamicIsland/components/Settings/SettingsView.swift @@ -1682,8 +1682,7 @@ struct GeneralSettings: View { if enableHorizontalMusicGestures { Picker("Gesture skip behavior", selection: $musicGestureBehavior) { ForEach(MusicSkipBehavior.allCases) { behavior in - Text(behavior.displayName) - .tag(behavior) + Text(behavior.displayName).tag(behavior) } } .pickerStyle(.segmented)