Add jump to unread translatable

This commit is contained in:
Stefan Ceriu
2026-05-21 17:28:32 +03:00
parent 9a3473137c
commit 3bbf31bea6
6 changed files with 5 additions and 4 deletions
@@ -10,6 +10,7 @@
"a11y_info" = "Info";
"a11y_join_call" = "Join call";
"a11y_jump_to_bottom" = "Jump to bottom";
"a11y_jump_to_unread" = "Jump to unread";
"a11y_notifications_mentions_only" = "Mentions only";
"a11y_notifications_muted" = "Muted";
"a11y_notifications_new_mentions" = "New mentions";
@@ -10,6 +10,7 @@
"a11y_info" = "Info";
"a11y_join_call" = "Join call";
"a11y_jump_to_bottom" = "Jump to bottom";
"a11y_jump_to_unread" = "Jump to unread";
"a11y_notifications_mentions_only" = "Mentions only";
"a11y_notifications_muted" = "Muted";
"a11y_notifications_new_mentions" = "New mentions";
@@ -1,4 +1,3 @@
"a11y_jump_to_unread" = "Jump to unread";
"soft_logout_clear_data_dialog_content" = "Clear all data currently stored on this device?\nSign in again to access your account data and messages.";
"soft_logout_clear_data_dialog_title" = "Clear data";
"soft_logout_clear_data_notice" = "Warning: Your personal data (including encryption keys) is still stored on this device.\n\nClear it if you’re finished using this device, or want to sign in to another account.";
@@ -10,8 +10,6 @@ import Foundation
// swiftlint:disable explicit_type_interface function_parameter_count identifier_name line_length
// swiftlint:disable nesting type_body_length type_name vertical_whitespace_opening_braces
internal enum UntranslatedL10n {
/// Jump to unread
internal static var a11yJumpToUnread: String { return UntranslatedL10n.tr("Untranslated", "a11y_jump_to_unread") }
/// Custom sound...
internal static var screenNotificationSettingsSoundCustomSoundButtonTitle: String { return UntranslatedL10n.tr("Untranslated", "screen_notification_settings_sound_custom_sound_button_title") }
/// Error deleting file
+2
View File
@@ -42,6 +42,8 @@ internal enum L10n {
internal static var a11yJoinCall: String { return L10n.tr("Localizable", "a11y_join_call") }
/// Jump to bottom
internal static var a11yJumpToBottom: String { return L10n.tr("Localizable", "a11y_jump_to_bottom") }
/// Jump to unread
internal static var a11yJumpToUnread: String { return L10n.tr("Localizable", "a11y_jump_to_unread") }
/// Mentions only
internal static var a11yNotificationsMentionsOnly: String { return L10n.tr("Localizable", "a11y_notifications_mentions_only") }
/// Muted
@@ -96,7 +96,7 @@ struct TimelineScrollButton: View {
.opacity(isHidden ? 0 : 1)
.allowsHitTesting(!isHidden)
.accessibilityHidden(isHidden)
.accessibilityLabel(direction == .down ? L10n.a11yJumpToBottom : UntranslatedL10n.a11yJumpToUnread)
.accessibilityLabel(direction == .down ? L10n.a11yJumpToBottom : L10n.a11yJumpToUnread)
.animation(.elementDefault, value: isHidden)
}