fix(ios): localize Settings accessibility labels (#105859)

* fix(ios): preserve localized accessibility labels

* chore(i18n): refresh native source inventory
This commit is contained in:
Peter Steinberger
2026-07-12 19:33:27 -07:00
committed by GitHub
parent e9e7d385e0
commit c81ae0412c
2 changed files with 6 additions and 4 deletions

View File

@@ -767,7 +767,7 @@ extension SettingsProTab {
/// Native inset-grouped action row (plain tinted text, no pill chrome).
func gatewayActionButton(
title: String,
title: LocalizedStringKey,
icon: String,
color: Color,
isBusy: Bool,
@@ -788,7 +788,7 @@ extension SettingsProTab {
.buttonStyle(.plain)
.foregroundStyle(color)
.disabled(isBusy || isDisabled)
.accessibilityLabel(title)
.accessibilityLabel(Text(title))
}
var aboutDestination: some View {
@@ -874,7 +874,7 @@ extension SettingsProTab {
}
.contentShape(Rectangle())
}
.accessibilityLabel(title)
.accessibilityLabel(Text(title))
}
func toggleCard(title: LocalizedStringKey, isOn: Binding<Bool>) -> some View {
@@ -1400,7 +1400,7 @@ extension SettingsProTab {
.contentShape(Rectangle())
}
.buttonStyle(.plain)
.accessibilityLabel(title)
.accessibilityLabel(Text(title))
.accessibilityValue(isOn.wrappedValue
? String(localized: "On")
: String(localized: "Off"))

View File

@@ -281,8 +281,10 @@ const RAW_LOCALIZATION_BYPASSES: Record<string, readonly string[]> = {
"func settingsListRow(\n icon: String,\n iconColor: Color,\n title: String",
"func aboutLinkRow(title: String",
"func toggleCard(title: String",
"func gatewayActionButton(\n title: String",
"func gatewaySecureField(_ placeholder: String",
"func settingsToggle(\n _ title: String",
".accessibilityLabel(title)",
],
"apps/ios/Sources/Gateway/GatewayConnectionController+Capabilities.swift": [
'helperText: "Secure connection is required for this host."',