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:
@@ -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 ', ')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user