Add missing translation strings

This commit is contained in:
Arkadiusz Fal 2022-09-28 17:45:05 +02:00
parent b32a892c21
commit 5f09626098
3 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ struct ChaptersView: View {
.listStyle(.plain)
#endif
} else {
NoCommentsView(text: "No chapters information available", systemImage: "xmark.circle.fill")
NoCommentsView(text: "No chapters information available".localized(), systemImage: "xmark.circle.fill")
}
}
}

View File

@ -9,9 +9,9 @@ struct CommentsView: View {
var body: some View {
Group {
if comments.disabled {
NoCommentsView(text: "Comments are disabled", systemImage: "xmark.circle.fill")
NoCommentsView(text: "Comments are disabled".localized(), systemImage: "xmark.circle.fill")
} else if comments.loaded && comments.all.isEmpty {
NoCommentsView(text: "No comments", systemImage: "0.circle.fill")
NoCommentsView(text: "No comments".localized(), systemImage: "0.circle.fill")
} else if !comments.loaded {
PlaceholderProgressView()
} else {

View File

@ -126,9 +126,9 @@ struct NowPlayingView: View {
if sections.contains(.comments) {
if comments.disabled {
NoCommentsView(text: "Comments are disabled", systemImage: "xmark.circle.fill")
NoCommentsView(text: "Comments are disabled".localized(), systemImage: "xmark.circle.fill")
} else if comments.loaded && comments.all.isEmpty {
NoCommentsView(text: "No comments", systemImage: "0.circle.fill")
NoCommentsView(text: "No comments".localized(), systemImage: "0.circle.fill")
} else if !comments.loaded {
VStack(alignment: .center) {
PlaceholderProgressView()
@ -156,7 +156,7 @@ struct NowPlayingView: View {
if sections.contains(.chapters) {
if let video = player.currentVideo {
if video.chapters.isEmpty {
NoCommentsView(text: "No chapters information available", systemImage: "xmark.circle.fill")
NoCommentsView(text: "No chapters information available".localized(), systemImage: "xmark.circle.fill")
} else {
Section(header: Text("Chapters")) {
ForEach(video.chapters) { chapter in