From 9afb52f2a4cdd7239c148ffe704c708ac24171ce Mon Sep 17 00:00:00 2001 From: eevee Date: Fri, 9 Aug 2024 14:05:03 +0300 Subject: [PATCH] commonIssuesTip localization --- .../Settings/Views/Shared/CommonIssuesTipView.swift | 9 +++------ .../EeveeSpotify.bundle/en.lproj/Localizable.strings | 5 +++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Sources/EeveeSpotify/Settings/Views/Shared/CommonIssuesTipView.swift b/Sources/EeveeSpotify/Settings/Views/Shared/CommonIssuesTipView.swift index 9cbc22f..a3a58e6 100644 --- a/Sources/EeveeSpotify/Settings/Views/Shared/CommonIssuesTipView.swift +++ b/Sources/EeveeSpotify/Settings/Views/Shared/CommonIssuesTipView.swift @@ -5,18 +5,15 @@ struct CommonIssuesTipView: View { var onDismiss: () -> Void var body: some View { - Section { HStack(spacing: 15) { - Image(systemName: "exclamationmark.bubble") .font(.title) .foregroundColor(.gray) VStack(alignment: .leading, spacing: 3) { - VStack(alignment: .leading) { - Text("Having Trouble?") + Text("common_issues_tip_title".localized) .font(.headline) } @@ -24,10 +21,10 @@ struct CommonIssuesTipView: View { destination: URL(string: "https://github.com/whoeevee/EeveeSpotify/blob/swift/common_issues.md")!, label: { VStack { - Text("If you are facing an issue, such as being unable to play any songs, check out ") + Text("\("common_issues_tip_message".localized) ") .foregroundColor(.white) - + Text("Common Issues") + + Text("common_issues_tip_button".localized) .foregroundColor(.blue) + Text(".") diff --git a/layout/Library/Application Support/EeveeSpotify.bundle/en.lproj/Localizable.strings b/layout/Library/Application Support/EeveeSpotify.bundle/en.lproj/Localizable.strings index 4945971..329e0fc 100644 --- a/layout/Library/Application Support/EeveeSpotify.bundle/en.lproj/Localizable.strings +++ b/layout/Library/Application Support/EeveeSpotify.bundle/en.lproj/Localizable.strings @@ -4,6 +4,11 @@ patching = "Patching"; lyrics = "Lyrics"; customization = "Customization"; +common_issues_tip_title = "Having Trouble?"; + +common_issues_tip_message = "If you are facing an issue, such as being unable to play any songs, check out"; +common_issues_tip_button = "Common Issues"; + reset_data = "Reset Data"; reset_data_description = "Clear cached data and restart the app.";