fix(i18n): restore Text(title) wrapper contract for settings accessibility labels

0aabf56242 relaxed the wrapper contract to .accessibilityLabel(title) while
the same pattern stayed in RAW_LOCALIZATION_BYPASSES, and #105859 then
restored Text(title) in SettingsProTabSections.swift, leaving main's
apple-app-i18n guard failing in both directions. Revert the contract to the
original required pattern; both guard tables validate against current main.
This commit is contained in:
Peter Steinberger
2026-07-12 19:47:54 -07:00
parent 34bbd3820b
commit 2186cdf36e

View File

@@ -182,7 +182,7 @@ const LOCALIZED_WRAPPER_CONTRACTS: Record<string, readonly string[]> = {
"func gatewaySecureField(\n _ placeholder: LocalizedStringKey",
"func settingsToggle(\n _ title: LocalizedStringKey",
".accessibilityLabel(Text(placeholder))",
".accessibilityLabel(title)",
".accessibilityLabel(Text(title))",
],
"apps/ios/Sources/Gateway/GatewayConnectionController+Capabilities.swift": [
'String(localized: "Secure connection is required for this host.")',