mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Fix locales
This commit is contained in:
@@ -185,7 +185,7 @@ struct TVDetailsPanel: View {
|
||||
|
||||
// Subscriber count
|
||||
if let subscriberCount = video?.author.subscriberCount {
|
||||
Text("\(CountFormatter.compact(subscriberCount)) subscribers")
|
||||
Text("channel.subscriberCount \(CountFormatter.compact(subscriberCount))")
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.white.opacity(0.6))
|
||||
}
|
||||
@@ -200,7 +200,7 @@ struct TVDetailsPanel: View {
|
||||
navigateToChannel(video.author)
|
||||
}
|
||||
} label: {
|
||||
Text("View Channel")
|
||||
Text(String(localized: "channel.view"))
|
||||
.font(.callout)
|
||||
.fontWeight(.medium)
|
||||
}
|
||||
@@ -272,7 +272,7 @@ struct TVDetailsPanel: View {
|
||||
)
|
||||
.padding(.vertical, 16)
|
||||
} else {
|
||||
Text("Comments unavailable")
|
||||
Text(String(localized: "comments.unavailable"))
|
||||
.font(.body)
|
||||
.foregroundStyle(.white.opacity(0.5))
|
||||
.frame(maxWidth: .infinity, alignment: .center)
|
||||
@@ -476,7 +476,7 @@ struct TVCommentsListView: View {
|
||||
Image(systemName: "bubble.left.and.exclamationmark.bubble.right")
|
||||
.font(.title2)
|
||||
.foregroundStyle(.white.opacity(0.5))
|
||||
Text("Comments disabled")
|
||||
Text(String(localized: "comments.disabled"))
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.white.opacity(0.5))
|
||||
}
|
||||
@@ -506,7 +506,7 @@ struct TVCommentsListView: View {
|
||||
Image(systemName: "bubble.left.and.bubble.right")
|
||||
.font(.title2)
|
||||
.foregroundStyle(.white.opacity(0.5))
|
||||
Text("No comments")
|
||||
Text(String(localized: "comments.empty"))
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.white.opacity(0.5))
|
||||
}
|
||||
@@ -707,7 +707,7 @@ struct TVFocusableCommentView: View {
|
||||
HStack(spacing: 4) {
|
||||
Image(systemName: showReplies ? "chevron.up" : "chevron.down")
|
||||
.font(.caption2)
|
||||
Text("\(comment.replyCount) replies")
|
||||
Text("comments.replyCount \(comment.replyCount)")
|
||||
.font(.caption)
|
||||
}
|
||||
.foregroundStyle(.blue)
|
||||
@@ -749,7 +749,7 @@ struct TVFocusableCommentView: View {
|
||||
Button {
|
||||
Task { await loadReplies() }
|
||||
} label: {
|
||||
Text("Load more replies")
|
||||
Text(String(localized: "comments.loadMoreReplies"))
|
||||
.font(.caption)
|
||||
.foregroundStyle(.blue)
|
||||
}
|
||||
|
||||
@@ -233,7 +233,7 @@ struct TVPlayerControlsView: View {
|
||||
VStack(spacing: 6) {
|
||||
Image(systemName: "captions.bubble")
|
||||
.font(.system(size: 28))
|
||||
Text("Subtitles")
|
||||
Text(String(localized: "player.controls.subtitles"))
|
||||
.font(.caption)
|
||||
}
|
||||
}
|
||||
@@ -247,7 +247,7 @@ struct TVPlayerControlsView: View {
|
||||
VStack(spacing: 6) {
|
||||
Image(systemName: "ant.circle")
|
||||
.font(.system(size: 28))
|
||||
Text("Debug")
|
||||
Text(String(localized: "player.debug.titleShort"))
|
||||
.font(.caption)
|
||||
}
|
||||
}
|
||||
@@ -281,7 +281,7 @@ struct TVPlayerControlsView: View {
|
||||
VStack(spacing: 6) {
|
||||
Image(systemName: "speaker.minus")
|
||||
.font(.system(size: 28))
|
||||
Text("Vol -")
|
||||
Text(String(localized: "player.tvos.volumeDown"))
|
||||
.font(.caption)
|
||||
}
|
||||
}
|
||||
@@ -299,7 +299,7 @@ struct TVPlayerControlsView: View {
|
||||
VStack(spacing: 6) {
|
||||
Image(systemName: "speaker.plus")
|
||||
.font(.system(size: 28))
|
||||
Text("Vol +")
|
||||
Text(String(localized: "player.tvos.volumeUp"))
|
||||
.font(.caption)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ struct TVPlayerProgressBar: View {
|
||||
Circle()
|
||||
.fill(.red)
|
||||
.frame(width: 8, height: 8)
|
||||
Text("LIVE")
|
||||
Text(String(localized: "player.live"))
|
||||
.font(.subheadline.weight(.semibold))
|
||||
.foregroundStyle(.red)
|
||||
}
|
||||
@@ -171,11 +171,11 @@ struct TVPlayerProgressBar: View {
|
||||
|
||||
// Scrub hint when focused (only for non-live)
|
||||
if !isLive && isFocused && !isScrubbing {
|
||||
Text("Press to scrub")
|
||||
Text(String(localized: "player.tvos.scrubHint"))
|
||||
.font(.caption)
|
||||
.foregroundStyle(.white.opacity(0.5))
|
||||
} else if !isLive && isScrubbing {
|
||||
Text("Swipe ← → • press to seek")
|
||||
Text(String(localized: "player.tvos.seekHint"))
|
||||
.font(.caption)
|
||||
.foregroundStyle(.white.opacity(0.7))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user