From 5cc2a5a3ec1241bf3f2f90c5d7cd626b1fc8b399 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Fri, 26 Mar 2021 23:07:16 -0700 Subject: [PATCH] Add link to CrowdIn in About --- Localizations/en.lproj/Localizable.strings | 1 + Views/SwiftUI/AboutView.swift | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/Localizations/en.lproj/Localizable.strings b/Localizations/en.lproj/Localizable.strings index 1c6c5fa..139314a 100644 --- a/Localizations/en.lproj/Localizable.strings +++ b/Localizations/en.lproj/Localizable.strings @@ -6,6 +6,7 @@ "about.official-account" = "Official Account"; "about.rate-the-app" = "Rate the app"; "about.source-code-and-issue-tracker" = "Source Code & Issue Tracker"; +"about.translations" = "Translations"; "about.website" = "Website"; "accessibility.activate-link-%@" = "Link: %@"; "accessibility.copy-text" = "Copy text"; diff --git a/Views/SwiftUI/AboutView.swift b/Views/SwiftUI/AboutView.swift index 8631bed..b737cf8 100644 --- a/Views/SwiftUI/AboutView.swift +++ b/Views/SwiftUI/AboutView.swift @@ -41,6 +41,13 @@ struct AboutView: View { Image(systemName: "wrench.and.screwdriver") } } + Link(destination: Self.translationsURL) { + Label { + Text("about.translations").foregroundColor(.primary) + } icon: { + Image(systemName: "globe") + } + } Link(destination: Self.reviewURL) { Label { Text("about.rate-the-app").foregroundColor(.primary) @@ -64,6 +71,7 @@ private extension AboutView { static let websiteURL = URL(string: "https://metabolist.org")! static let officialAccountURL = URL(string: "https://mastodon.social/@metabolist")! static let sourceCodeAndIssueTrackerURL = URL(string: "https://github.com/metabolist/metatext")! + static let translationsURL = URL(string: "https://crowdin.com/project/metatext")! static let reviewURL = URL(string: "https://apps.apple.com/app/metatext/id1523996615?mt=8&action=write-review")! static var version: String {