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
+15
View File
@@ -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 ', ')
}
}