mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-10-08 06:26:45 +00:00
fix: add the missing en-US translation for DisableChromeAI (#797)
This commit is contained in:
@@ -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.",
|
||||||
|
|||||||
@@ -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 ', ')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user