mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Fix locales
This commit is contained in:
@@ -140,7 +140,7 @@ struct BookmarksListView: View {
|
||||
.navigationTitle(String(localized: "home.bookmarks.title"))
|
||||
#if !os(tvOS)
|
||||
.toolbarTitleDisplayMode(.inlineLarge)
|
||||
.searchable(text: $searchText, prompt: Text("Search bookmarks"))
|
||||
.searchable(text: $searchText, prompt: Text(String(localized: "bookmarks.search.placeholder")))
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
Button {
|
||||
|
||||
@@ -139,7 +139,7 @@ struct HistoryListView: View {
|
||||
.navigationTitle(String(localized: "home.history.title"))
|
||||
#if !os(tvOS)
|
||||
.toolbarTitleDisplayMode(.inlineLarge)
|
||||
.searchable(text: $searchText, prompt: Text("Search history"))
|
||||
.searchable(text: $searchText, prompt: Text(String(localized: "history.search.placeholder")))
|
||||
.toolbar {
|
||||
// View options button (always visible)
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
|
||||
@@ -737,8 +737,8 @@ private struct TVHomeItemRow: View {
|
||||
.frame(width: 30, height: 24)
|
||||
}
|
||||
.buttonStyle(TVCompactButtonStyle())
|
||||
.alert("Remove from Home?", isPresented: $showingDeleteConfirmation) {
|
||||
Button("Cancel", role: .cancel) { }
|
||||
.alert(String(localized: "home.removeConfirmation.title"), isPresented: $showingDeleteConfirmation) {
|
||||
Button(String(localized: "common.cancel"), role: .cancel) { }
|
||||
Button("Remove", role: .destructive) {
|
||||
onDelete?()
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ struct HomeView: View {
|
||||
Image(systemName: "gear")
|
||||
}
|
||||
.accessibilityIdentifier("home.settingsButton")
|
||||
.accessibilityLabel("Settings")
|
||||
.accessibilityLabel(String(localized: "settings.title"))
|
||||
.liquidGlassTransitionSource(id: "homeSettings", in: sheetTransition)
|
||||
}
|
||||
#endif
|
||||
@@ -1137,7 +1137,7 @@ struct HomeView: View {
|
||||
)
|
||||
} label: {
|
||||
HStack(spacing: 4) {
|
||||
Text("\(contentType.localizedTitle) from \(instance.displayName)")
|
||||
Text(verbatim: "\(contentType.localizedTitle) - \(instance.displayName)")
|
||||
.fontWeight(.semibold)
|
||||
Image(systemName: "chevron.right")
|
||||
.font(.caption)
|
||||
@@ -1145,7 +1145,6 @@ struct HomeView: View {
|
||||
.foregroundStyle(Color.accentColor)
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.padding(.horizontal, 32)
|
||||
.padding(.top, 16)
|
||||
.padding(.bottom, 8)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
@@ -1201,7 +1200,7 @@ struct HomeView: View {
|
||||
HStack {
|
||||
Image(systemName: source.type.systemImage)
|
||||
.foregroundStyle(.secondary)
|
||||
Text("Browse \(source.name)")
|
||||
Text("mediaSources.browse \(source.name)")
|
||||
Spacer()
|
||||
Image(systemName: "chevron.right")
|
||||
.foregroundStyle(.tertiary)
|
||||
|
||||
@@ -37,7 +37,7 @@ struct PlaylistRowView: View {
|
||||
.font(.headline)
|
||||
.lineLimit(1)
|
||||
|
||||
Text("\(playlist.videoCount) videos • \(playlist.formattedTotalDuration)")
|
||||
Text("playlist.videoCountDuration \(playlist.videoCount) \(playlist.formattedTotalDuration)")
|
||||
.font(.caption.monospacedDigit())
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user