mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-19 05:21:35 +00:00
fix(ios): localize Settings accessibility labels (#105859)
* fix(ios): preserve localized accessibility labels * chore(i18n): refresh native source inventory
This commit is contained in:
committed by
GitHub
parent
e9e7d385e0
commit
c81ae0412c
@@ -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"))
|
||||
|
||||
@@ -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."',
|
||||
|
||||
Reference in New Issue
Block a user