Add thread indicator to status accessibility label

This commit is contained in:
Justin Mazzocchi 2021-04-06 17:01:59 -07:00
parent 92c6037ab6
commit c809f86a3f
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
2 changed files with 6 additions and 0 deletions

View File

@ -294,6 +294,7 @@
"share-extension-error.no-account-found" = "No account found";
"status.accessibility.view-author-profile" = "View author's profile";
"status.accessibility.view-reblogger-profile" = "View booster's profile";
"status.accessibility.part-of-a-thread" = "Part of a thread";
"status.bookmark" = "Bookmark";
"status.content-warning-abbreviation" = "CW";
"status.content-warning.accessibility" = "Content warning";

View File

@ -827,6 +827,11 @@ private extension StatusView {
}
}
if statusConfiguration.viewModel.configuration.isReplyOutOfContext {
accessibilityAttributedLabel.appendWithSeparator(
NSLocalizedString("status.accessibility.part-of-a-thread", comment: ""))
}
return accessibilityAttributedLabel
}