mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-15 01:33:25 +01:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ struct PromotedCategoryView: View {
|
||||
|
||||
HStack {
|
||||
Image(systemSymbol: .dpadRightFill)
|
||||
Text("Games &\nEmulators")
|
||||
Text(L10n.BrowseView.Categories.gamesAndEmulators)
|
||||
.multilineTextAlignment(.leading)
|
||||
}
|
||||
.foregroundColor(.accentColor)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -35,7 +35,7 @@ struct SourcesView: View {
|
||||
LazyVStack(alignment: .leading, spacing: 24) {
|
||||
// Installed Sources
|
||||
LazyVStack(alignment: .leading, spacing: 12) {
|
||||
Text("Sources control what apps are available to download through SideStore.")
|
||||
Text(L10n.SourcesView.sourcesDescription)
|
||||
.font(.callout)
|
||||
.foregroundColor(.secondary)
|
||||
|
||||
@@ -58,7 +58,7 @@ struct SourcesView: View {
|
||||
SwiftUI.Button {
|
||||
self.removeSource(source)
|
||||
} label: {
|
||||
Label("Remove", systemSymbol: .trash)
|
||||
Label(L10n.SourcesView.remove, systemSymbol: .trash)
|
||||
}
|
||||
}))
|
||||
}
|
||||
@@ -67,11 +67,11 @@ struct SourcesView: View {
|
||||
|
||||
// Trusted Sources
|
||||
LazyVStack(alignment: .leading) {
|
||||
Text("Trusted Sources")
|
||||
Text(L10n.SourcesView.trustedSources)
|
||||
.font(.title3)
|
||||
.bold()
|
||||
|
||||
Text("SideStore has reviewed these sources to make sure they meet our safety standards.")
|
||||
Text(L10n.SourcesView.reviewedText)
|
||||
.font(.callout)
|
||||
.foregroundColor(.secondary)
|
||||
|
||||
@@ -80,7 +80,7 @@ struct SourcesView: View {
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
.navigationTitle("Sources")
|
||||
.navigationTitle(L10n.SourcesView.sources)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
SwiftUI.Button {
|
||||
@@ -107,7 +107,7 @@ struct SourcesView: View {
|
||||
|
||||
ToolbarItem(placement: .navigationBarTrailing) {
|
||||
SwiftUI.Button(action: self.dismiss) {
|
||||
Text("Done").bold()
|
||||
Text(L10n.SourcesView.done).bold()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user