Fix locales

This commit is contained in:
Arkadiusz Fal
2026-02-09 00:13:46 +01:00
parent 05f921d605
commit 8464464199
55 changed files with 644 additions and 548 deletions

View File

@@ -193,7 +193,7 @@ extension BlurredImageBackground {
.fill(.gray)
.frame(width: 280, height: 158)
Text("Video Title")
Text(verbatim: "Video Title")
.font(.headline)
}
}

View File

@@ -63,7 +63,7 @@ struct ChannelCardGridView: View {
}
} else {
// Reserve space with invisible text
Text(" ")
Text(verbatim: " ")
.font(subscriberFont)
}
}

View File

@@ -49,16 +49,16 @@ struct VideoStatsRow: View {
Text(publishedText)
.onTapGesture { showFormattedDate.toggle() }
} else if isLoadingAPIStats {
Text("2 weeks ago")
Text(verbatim: "2 weeks ago")
.redacted(reason: .placeholder)
}
// View count
if let viewCount = video.formattedViewCount {
Text("")
Text(verbatim: "")
Text("video.views \(viewCount)")
} else if isLoadingAPIStats {
Text("")
Text(verbatim: "")
Text("video.views 1.2M")
.redacted(reason: .placeholder)
}

View File

@@ -171,9 +171,9 @@ extension VideoListContainer where Header == EmptyView {
.fill(Color.gray.opacity(0.3))
.frame(width: 120, height: 68)
VStack(alignment: .leading) {
Text("Video Title \(index + 1)")
Text(verbatim: "Video Title \(index + 1)")
.font(.subheadline)
Text("Channel Name")
Text(verbatim: "Channel Name")
.font(.caption)
.foregroundStyle(.secondary)
}
@@ -197,9 +197,9 @@ extension VideoListContainer where Header == EmptyView {
.fill(Color.gray.opacity(0.3))
.frame(width: 120, height: 68)
VStack(alignment: .leading) {
Text("Video Title \(index + 1)")
Text(verbatim: "Video Title \(index + 1)")
.font(.subheadline)
Text("Channel Name")
Text(verbatim: "Channel Name")
.font(.caption)
.foregroundStyle(.secondary)
}

View File

@@ -81,9 +81,9 @@ struct VideoListContent<Content: View>: View {
.fill(Color.gray.opacity(0.3))
.frame(width: 120, height: 68)
VStack(alignment: .leading) {
Text("Video Title \(index + 1)")
Text(verbatim: "Video Title \(index + 1)")
.font(.subheadline)
Text("Channel Name")
Text(verbatim: "Channel Name")
.font(.caption)
.foregroundStyle(.secondary)
}
@@ -112,9 +112,9 @@ struct VideoListContent<Content: View>: View {
.fill(Color.gray.opacity(0.3))
.frame(width: 120, height: 68)
VStack(alignment: .leading) {
Text("Video Title \(index + 1)")
Text(verbatim: "Video Title \(index + 1)")
.font(.subheadline)
Text("Channel Name")
Text(verbatim: "Channel Name")
.font(.caption)
.foregroundStyle(.secondary)
}

View File

@@ -121,9 +121,9 @@ struct VideoListRow<Content: View>: View {
.fill(Color.gray.opacity(0.3))
.frame(width: 120, height: 68)
VStack(alignment: .leading) {
Text("Video Title \(index + 1)")
Text(verbatim: "Video Title \(index + 1)")
.font(.subheadline)
Text("Channel Name")
Text(verbatim: "Channel Name")
.font(.caption)
.foregroundStyle(.secondary)
}
@@ -152,9 +152,9 @@ struct VideoListRow<Content: View>: View {
.fill(Color.gray.opacity(0.3))
.frame(width: 120, height: 68)
VStack(alignment: .leading) {
Text("Video Title \(index + 1)")
Text(verbatim: "Video Title \(index + 1)")
.font(.subheadline)
Text("Channel Name")
Text(verbatim: "Channel Name")
.font(.caption)
.foregroundStyle(.secondary)
}