Add es-419 and finish adding support for the translations

Added Latin American Spanish (probably not the best translation)

Made everything reference the swiftgen stuff rather than having strings
This commit is contained in:
bogotesr
2022-12-24 21:06:28 -07:00
committed by Joe Mattiello
parent 6257fdcd61
commit 2c07009b04
15 changed files with 499 additions and 81 deletions

View File

@@ -25,7 +25,7 @@ struct ConfirmAddSourceView: View {
List {
Section {
VStack(alignment: .leading) {
Text("\(source.apps.count) Apps")
Text("\(source.apps.count) \(L10n.ConfirmAddSourceView.apps)")
Text(source.apps.map { $0.name }.joined(separator: ", "))
.font(.callout)
@@ -34,28 +34,28 @@ struct ConfirmAddSourceView: View {
}
VStack() {
Text("\(source.newsItems.count) News Items")
Text("\(source.newsItems.count) \(L10n.ConfirmAddSourceView.newsItems)")
}
} header: {
Text("Source Contents")
Text(L10n.ConfirmAddSourceView.sourceContents)
}
Section {
VStack(alignment: .leading) {
Text("Source Identifier")
Text(L10n.ConfirmAddSourceView.sourceIdentifier)
Text(source.identifier)
.font(.callout)
.foregroundColor(.secondary)
}
VStack(alignment: .leading) {
Text("Source URL")
Text(L10n.ConfirmAddSourceView.sourceURL)
Text(source.sourceURL.absoluteString)
.font(.callout)
.foregroundColor(.secondary)
}
} header: {
Text("Source Info")
Text(L10n.ConfirmAddSourceView.sourceInfo)
}
}
.listStyle(InsetGroupedListStyle())
@@ -65,7 +65,7 @@ struct ConfirmAddSourceView: View {
SwiftUI.Button {
confirmationHandler(fetchedSource)
} label: {
Label("Add Source", systemSymbol: .plus)
Label(L10n.ConfirmAddSourceView.addSource, systemSymbol: .plus)
}
.buttonStyle(FilledButtonStyle())
.padding()