summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Grid/PostGridView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-23 13:31:30 -0800
committerFuwn <[email protected]>2026-02-23 13:33:43 -0800
commit2dd5ad49c5b70471dd17045a7bea6f49d97ef9d9 (patch)
tree321be2a11ebfe7b13f51bd2a88b9a011affe6299 /Sora/Views/Post/Grid/PostGridView.swift
parentchore: sync string catalog from xcode rebuild (diff)
downloadsora-testing-2dd5ad49c5b70471dd17045a7bea6f49d97ef9d9.tar.xz
sora-testing-2dd5ad49c5b70471dd17045a7bea6f49d97ef9d9.zip
feat: localize accessibility fallback and value strings
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 37c207e..23f7c00 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -549,14 +549,14 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length
.joined(separator: ", ")
if tagSummary.isEmpty {
- return "Post \(post.id)"
+ return String(localized: "Post \(post.id)")
}
return tagSummary
}
private func postAccessibilityValue(for post: BooruPost) -> String {
- "Rating \(post.rating.rawValue.uppercased()). Score \(post.score)."
+ String(localized: "Rating \(post.rating.rawValue). Score \(post.score).")
}
// MARK: - Local Search Methods