mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 11:51:33 +00:00
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:
@@ -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.")',
|
||||
|
||||
Reference in New Issue
Block a user