fix: add the missing en-US translation for DisableChromeAI (#797)

This commit is contained in:
HetCreep
2026-10-07 23:45:49 +02:00
committed by GitHub
parent 0fb974c8a0
commit 741f80d0b8
2 changed files with 22 additions and 0 deletions
+7
View File
@@ -202,6 +202,13 @@
"UndoLabel": "Enable AI features in Microsoft Edge", "UndoLabel": "Enable AI features in Microsoft Edge",
"ApplyUndoText": "Enabling AI features in Microsoft Edge" "ApplyUndoText": "Enabling AI features in Microsoft Edge"
}, },
"DisableChromeAI": {
"Label": "Disable AI features in Google Chrome",
"ToolTip": "Disables Google Chrome's built-in AI tools and integrations, including Gemini, AI search & suggestions, writing assistance, autofill and more. It also removes local AI models. This feature uses policies, which will lock down certain settings.",
"ApplyText": "Disabling AI features in Google Chrome",
"UndoLabel": "Enable AI features in Google Chrome",
"ApplyUndoText": "Enabling AI features in Google Chrome"
},
"DisablePaintAI": { "DisablePaintAI": {
"Label": "Disable AI features in Paint", "Label": "Disable AI features in Paint",
"ToolTip": "This will turn off AI features in Paint, such as the AI-powered image generation and editing tools. This feature uses policies, which will lock down certain settings.", "ToolTip": "This will turn off AI features in Paint, such as the AI-powered image generation and editing tools. This feature uses policies, which will lock down certain settings.",
+15
View File
@@ -89,4 +89,19 @@ Describe 'FeatureId parameter contracts' {
$missing | Should -HaveCount 0 -Because ($missing -join '; ') $missing | Should -HaveCount 0 -Because ($missing -join '; ')
} }
It 'has an en-US Features translation with a Label for every FeatureId' {
$enUsPath = Join-Path $script:RepoRoot 'Config\Languages\en-US\Features.json'
$translations = (Get-Content -LiteralPath $enUsPath -Raw | ConvertFrom-Json).Features
$missing = @(
foreach ($feature in $script:Features) {
$entry = $translations.PSObject.Properties[$feature.FeatureId]
if ($null -eq $entry -or [string]::IsNullOrWhiteSpace($entry.Value.Label)) {
$feature.FeatureId
}
}
)
$missing | Should -HaveCount 0 -Because ($missing -join ', ')
}
} }