localize
This commit is contained in:
parent
e1763390cc
commit
e51f4acc72
|
@ -264,6 +264,10 @@ internal enum L10n {
|
||||||
internal static var removeAllUsers: String { return L10n.tr("Localizable", "removeAllUsers") }
|
internal static var removeAllUsers: String { return L10n.tr("Localizable", "removeAllUsers") }
|
||||||
/// Remove From Resume
|
/// Remove From Resume
|
||||||
internal static var removeFromResume: String { return L10n.tr("Localizable", "removeFromResume") }
|
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
|
/// Reset
|
||||||
internal static var reset: String { return L10n.tr("Localizable", "reset") }
|
internal static var reset: String { return L10n.tr("Localizable", "reset") }
|
||||||
/// Reset App Settings
|
/// Reset App Settings
|
||||||
|
@ -344,6 +348,8 @@ internal enum L10n {
|
||||||
internal static var smallest: String { return L10n.tr("Localizable", "smallest") }
|
internal static var smallest: String { return L10n.tr("Localizable", "smallest") }
|
||||||
/// Sort by
|
/// Sort by
|
||||||
internal static var sortBy: String { return L10n.tr("Localizable", "sortBy") }
|
internal static var sortBy: String { return L10n.tr("Localizable", "sortBy") }
|
||||||
|
/// Source Code
|
||||||
|
internal static var sourceCode: String { return L10n.tr("Localizable", "sourceCode") }
|
||||||
/// STUDIO
|
/// STUDIO
|
||||||
internal static var studio: String { return L10n.tr("Localizable", "studio") }
|
internal static var studio: String { return L10n.tr("Localizable", "studio") }
|
||||||
/// Studios
|
/// Studios
|
||||||
|
|
|
@ -28,14 +28,14 @@ struct BasicAppSettingsView: View {
|
||||||
Section {
|
Section {
|
||||||
Button {} label: {
|
Button {} label: {
|
||||||
HStack {
|
HStack {
|
||||||
Text("Version")
|
L10n.version.text
|
||||||
Spacer()
|
Spacer()
|
||||||
Text("\(UIApplication.appVersion ?? "--") (\(UIApplication.bundleVersion ?? "--"))")
|
Text("\(UIApplication.appVersion ?? "--") (\(UIApplication.bundleVersion ?? "--"))")
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} header: {
|
} header: {
|
||||||
Text("About")
|
L10n.about.text
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Implement once design is theme appearance friendly
|
// TODO: Implement once design is theme appearance friendly
|
||||||
|
|
|
@ -163,14 +163,14 @@ struct SettingsView: View {
|
||||||
Section {
|
Section {
|
||||||
Button {} label: {
|
Button {} label: {
|
||||||
HStack {
|
HStack {
|
||||||
Text("Version")
|
L10n.version.text
|
||||||
Spacer()
|
Spacer()
|
||||||
Text("\(UIApplication.appVersion ?? "--") (\(UIApplication.bundleVersion ?? "--"))")
|
Text("\(UIApplication.appVersion ?? "--") (\(UIApplication.bundleVersion ?? "--"))")
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} header: {
|
} header: {
|
||||||
Text("About")
|
L10n.about.text
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ struct AboutView: View {
|
||||||
.cornerRadius(11)
|
.cornerRadius(11)
|
||||||
.frame(width: 150, height: 150)
|
.frame(width: 150, height: 150)
|
||||||
|
|
||||||
|
// App name, not to be localized
|
||||||
Text("Swiftfin")
|
Text("Swiftfin")
|
||||||
.fontWeight(.semibold)
|
.fontWeight(.semibold)
|
||||||
.font(.title2)
|
.font(.title2)
|
||||||
|
@ -34,7 +35,7 @@ struct AboutView: View {
|
||||||
Section {
|
Section {
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Text("Version")
|
L10n.about.text
|
||||||
Spacer()
|
Spacer()
|
||||||
Text("\(UIApplication.appVersion ?? "--") (\(UIApplication.bundleVersion ?? "--"))")
|
Text("\(UIApplication.appVersion ?? "--") (\(UIApplication.bundleVersion ?? "--"))")
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
|
@ -46,7 +47,7 @@ struct AboutView: View {
|
||||||
.resizable()
|
.resizable()
|
||||||
.frame(width: 20, height: 20)
|
.frame(width: 20, height: 20)
|
||||||
.foregroundColor(.primary)
|
.foregroundColor(.primary)
|
||||||
Link("Source Code",
|
Link(L10n.sourceCode,
|
||||||
destination: URL(string: "https://github.com/jellyfin/Swiftfin")!)
|
destination: URL(string: "https://github.com/jellyfin/Swiftfin")!)
|
||||||
.foregroundColor(.primary)
|
.foregroundColor(.primary)
|
||||||
|
|
||||||
|
@ -58,7 +59,7 @@ struct AboutView: View {
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Image(systemName: "plus.circle.fill")
|
Image(systemName: "plus.circle.fill")
|
||||||
Link("Request a Feature",
|
Link(L10n.requestFeature,
|
||||||
destination: URL(string: "https://github.com/jellyfin/Swiftfin/issues")!)
|
destination: URL(string: "https://github.com/jellyfin/Swiftfin/issues")!)
|
||||||
.foregroundColor(.primary)
|
.foregroundColor(.primary)
|
||||||
|
|
||||||
|
@ -70,7 +71,7 @@ struct AboutView: View {
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Image(systemName: "xmark.circle.fill")
|
Image(systemName: "xmark.circle.fill")
|
||||||
Link("Report an Issue",
|
Link(L10n.reportIssue,
|
||||||
destination: URL(string: "https://github.com/jellyfin/Swiftfin/issues")!)
|
destination: URL(string: "https://github.com/jellyfin/Swiftfin/issues")!)
|
||||||
.foregroundColor(.primary)
|
.foregroundColor(.primary)
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ struct BasicAppSettingsView: View {
|
||||||
basicAppSettingsRouter.route(to: \.about)
|
basicAppSettingsRouter.route(to: \.about)
|
||||||
} label: {
|
} label: {
|
||||||
HStack {
|
HStack {
|
||||||
Text("About")
|
L10n.about.text
|
||||||
.foregroundColor(.primary)
|
.foregroundColor(.primary)
|
||||||
Spacer()
|
Spacer()
|
||||||
Image(systemName: "chevron.right")
|
Image(systemName: "chevron.right")
|
||||||
|
|
|
@ -173,7 +173,7 @@ struct SettingsView: View {
|
||||||
settingsRouter.route(to: \.about)
|
settingsRouter.route(to: \.about)
|
||||||
} label: {
|
} label: {
|
||||||
HStack {
|
HStack {
|
||||||
Text("About")
|
L10n.about.text
|
||||||
.foregroundColor(.primary)
|
.foregroundColor(.primary)
|
||||||
Spacer()
|
Spacer()
|
||||||
Image(systemName: "chevron.right")
|
Image(systemName: "chevron.right")
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue