mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Fix locales
This commit is contained in:
@@ -52,7 +52,7 @@ struct DownloadedVideoRowView: View {
|
||||
@ViewBuilder
|
||||
private var codecBadge: some View {
|
||||
if isMuxed {
|
||||
Text("STREAM")
|
||||
Text(String(localized: "stream.badge.stream"))
|
||||
.font(.caption2)
|
||||
.padding(.horizontal, 6)
|
||||
.padding(.vertical, 2)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user