From 741f80d0b8f13531b42e9dbccc6d9bacc964441c Mon Sep 17 00:00:00 2001 From: HetCreep <239326951+HetCreep@users.noreply.github.com> Date: Thu, 8 Oct 2026 04:45:49 +0700 Subject: [PATCH] fix: add the missing en-US translation for DisableChromeAI (#797) --- Config/Languages/en-US/Features.json | 7 +++++++ Tests/FeatureParameterContracts.Tests.ps1 | 15 +++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/Config/Languages/en-US/Features.json b/Config/Languages/en-US/Features.json index e93eaff..7ad4e26 100644 --- a/Config/Languages/en-US/Features.json +++ b/Config/Languages/en-US/Features.json @@ -202,6 +202,13 @@ "UndoLabel": "Enable 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": { "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.", diff --git a/Tests/FeatureParameterContracts.Tests.ps1 b/Tests/FeatureParameterContracts.Tests.ps1 index 90f2a38..e991457 100644 --- a/Tests/FeatureParameterContracts.Tests.ps1 +++ b/Tests/FeatureParameterContracts.Tests.ps1 @@ -89,4 +89,19 @@ Describe 'FeatureId parameter contracts' { $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 ', ') + } }