From 2186cdf36ef98cb2780fbaa8095ff67bdbbb3c21 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 12 Jul 2026 19:47:54 -0700 Subject: [PATCH] fix(i18n): restore Text(title) wrapper contract for settings accessibility labels 0aabf562423 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. --- scripts/apple-app-i18n.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/apple-app-i18n.ts b/scripts/apple-app-i18n.ts index 5afb42b72d43..afcd5a09f8cc 100644 --- a/scripts/apple-app-i18n.ts +++ b/scripts/apple-app-i18n.ts @@ -182,7 +182,7 @@ const LOCALIZED_WRAPPER_CONTRACTS: Record = { "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.")',