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

@@ -36,7 +36,7 @@ struct AdaptiveStreamRowView: View {
HStack {
VStack(alignment: .leading, spacing: 2) {
HStack(spacing: 6) {
Text(format == .hls ? "HLS" : "DASH")
Text(String(localized: format == .hls ? "stream.format.hls" : "stream.format.dash"))
.font(.headline)
// Show quality badge when available
@@ -49,7 +49,7 @@ struct AdaptiveStreamRowView: View {
.clipShape(Capsule())
}
}
Text(format == .hls ? "Apple HLS" : "MPEG-DASH (Best for MPV)")
Text(String(localized: format == .hls ? "stream.format.appleHLS" : "stream.format.mpegDash"))
.font(.caption)
.foregroundStyle(.secondary)
}
@@ -134,7 +134,7 @@ struct VideoStreamRowView: View {
@ViewBuilder
private var codecBadge: some View {
if stream.isMuxed {
Text("STREAM")
Text(String(localized: "stream.badge.stream"))
.font(.caption2)
.padding(.horizontal, 6)
.padding(.vertical, 2)
@@ -359,7 +359,7 @@ struct CaptionRowView: View {
.font(.headline)
if let caption, caption.isAutoGenerated {
Text("AUTO")
Text(String(localized: "stream.subtitle.auto"))
.font(.caption2)
.padding(.horizontal, 6)
.padding(.vertical, 2)