Add link to CrowdIn in About

This commit is contained in:
Justin Mazzocchi 2021-03-26 23:07:16 -07:00
parent aacde25ab1
commit 5cc2a5a3ec
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C
2 changed files with 9 additions and 0 deletions

View file

@ -6,6 +6,7 @@
"about.official-account" = "Official Account"; "about.official-account" = "Official Account";
"about.rate-the-app" = "Rate the app"; "about.rate-the-app" = "Rate the app";
"about.source-code-and-issue-tracker" = "Source Code & Issue Tracker"; "about.source-code-and-issue-tracker" = "Source Code & Issue Tracker";
"about.translations" = "Translations";
"about.website" = "Website"; "about.website" = "Website";
"accessibility.activate-link-%@" = "Link: %@"; "accessibility.activate-link-%@" = "Link: %@";
"accessibility.copy-text" = "Copy text"; "accessibility.copy-text" = "Copy text";

View file

@ -41,6 +41,13 @@ struct AboutView: View {
Image(systemName: "wrench.and.screwdriver") Image(systemName: "wrench.and.screwdriver")
} }
} }
Link(destination: Self.translationsURL) {
Label {
Text("about.translations").foregroundColor(.primary)
} icon: {
Image(systemName: "globe")
}
}
Link(destination: Self.reviewURL) { Link(destination: Self.reviewURL) {
Label { Label {
Text("about.rate-the-app").foregroundColor(.primary) Text("about.rate-the-app").foregroundColor(.primary)
@ -64,6 +71,7 @@ private extension AboutView {
static let websiteURL = URL(string: "https://metabolist.org")! static let websiteURL = URL(string: "https://metabolist.org")!
static let officialAccountURL = URL(string: "https://mastodon.social/@metabolist")! static let officialAccountURL = URL(string: "https://mastodon.social/@metabolist")!
static let sourceCodeAndIssueTrackerURL = URL(string: "https://github.com/metabolist/metatext")! 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 let reviewURL = URL(string: "https://apps.apple.com/app/metatext/id1523996615?mt=8&action=write-review")!
static var version: String { static var version: String {