This commit is contained in:
Ethan Pippin 2022-01-20 23:04:15 -07:00
parent e1763390cc
commit e51f4acc72
7 changed files with 17 additions and 10 deletions

View File

@ -264,6 +264,10 @@ internal enum L10n {
internal static var removeAllUsers: String { return L10n.tr("Localizable", "removeAllUsers") }
/// Remove From Resume
internal static var removeFromResume: String { return L10n.tr("Localizable", "removeFromResume") }
/// Report an Issue
internal static var reportIssue: String { return L10n.tr("Localizable", "reportIssue") }
/// Request a Feature
internal static var requestFeature: String { return L10n.tr("Localizable", "requestFeature") }
/// Reset
internal static var reset: String { return L10n.tr("Localizable", "reset") }
/// Reset App Settings
@ -344,6 +348,8 @@ internal enum L10n {
internal static var smallest: String { return L10n.tr("Localizable", "smallest") }
/// Sort by
internal static var sortBy: String { return L10n.tr("Localizable", "sortBy") }
/// Source Code
internal static var sourceCode: String { return L10n.tr("Localizable", "sourceCode") }
/// STUDIO
internal static var studio: String { return L10n.tr("Localizable", "studio") }
/// Studios

View File

@ -28,14 +28,14 @@ struct BasicAppSettingsView: View {
Section {
Button {} label: {
HStack {
Text("Version")
L10n.version.text
Spacer()
Text("\(UIApplication.appVersion ?? "--") (\(UIApplication.bundleVersion ?? "--"))")
.foregroundColor(.secondary)
}
}
} header: {
Text("About")
L10n.about.text
}
// TODO: Implement once design is theme appearance friendly

View File

@ -163,14 +163,14 @@ struct SettingsView: View {
Section {
Button {} label: {
HStack {
Text("Version")
L10n.version.text
Spacer()
Text("\(UIApplication.appVersion ?? "--") (\(UIApplication.bundleVersion ?? "--"))")
.foregroundColor(.secondary)
}
}
} header: {
Text("About")
L10n.about.text
}
}
}

View File

@ -21,6 +21,7 @@ struct AboutView: View {
.cornerRadius(11)
.frame(width: 150, height: 150)
// App name, not to be localized
Text("Swiftfin")
.fontWeight(.semibold)
.font(.title2)
@ -34,7 +35,7 @@ struct AboutView: View {
Section {
HStack {
Text("Version")
L10n.about.text
Spacer()
Text("\(UIApplication.appVersion ?? "--") (\(UIApplication.bundleVersion ?? "--"))")
.foregroundColor(.secondary)
@ -46,7 +47,7 @@ struct AboutView: View {
.resizable()
.frame(width: 20, height: 20)
.foregroundColor(.primary)
Link("Source Code",
Link(L10n.sourceCode,
destination: URL(string: "https://github.com/jellyfin/Swiftfin")!)
.foregroundColor(.primary)
@ -58,7 +59,7 @@ struct AboutView: View {
HStack {
Image(systemName: "plus.circle.fill")
Link("Request a Feature",
Link(L10n.requestFeature,
destination: URL(string: "https://github.com/jellyfin/Swiftfin/issues")!)
.foregroundColor(.primary)
@ -70,7 +71,7 @@ struct AboutView: View {
HStack {
Image(systemName: "xmark.circle.fill")
Link("Report an Issue",
Link(L10n.reportIssue,
destination: URL(string: "https://github.com/jellyfin/Swiftfin/issues")!)
.foregroundColor(.primary)

View File

@ -35,7 +35,7 @@ struct BasicAppSettingsView: View {
basicAppSettingsRouter.route(to: \.about)
} label: {
HStack {
Text("About")
L10n.about.text
.foregroundColor(.primary)
Spacer()
Image(systemName: "chevron.right")

View File

@ -173,7 +173,7 @@ struct SettingsView: View {
settingsRouter.route(to: \.about)
} label: {
HStack {
Text("About")
L10n.about.text
.foregroundColor(.primary)
Spacer()
Image(systemName: "chevron.right")