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

@@ -23,15 +23,15 @@ struct AddSourceView: View {
.autocapitalization(.none)
.autocorrectionDisabled()
} header: {
Text("Source URL")
Text(L10n.AddSourceView.sourceURL)
} footer: {
VStack(alignment: .leading, spacing: 4) {
Text("Please enter the source url here. Then, tap continue to validate and add the source in the next step.")
Text(L10n.AddSourceView.sourceWarning)
HStack(alignment: .top) {
Image(systemSymbol: .exclamationmarkTriangleFill)
Text("Be careful with unvalidated third-party sources! Make sure to only add sources that you trust.")
Text(L10n.AddSourceView.sourceWarningContinued)
}
}
}
@@ -39,12 +39,12 @@ struct AddSourceView: View {
SwiftUI.Button {
self.continueHandler(self.sourceUrlText)
} label: {
Text("Continue")
Text(L10n.AddSourceView.continue)
}
.disabled(URL(string: self.sourceUrlText)?.host == nil)
}
.listStyle(InsetGroupedListStyle())
.navigationTitle("Add Source")
.navigationTitle(L10n.AddSourceView.title)
}
}