Add support links for Ukraine in Russian language (#910)

This commit is contained in:
Jeffrey
2026-11-15 17:26:58 +01:00
committed by GitHub
parent 30c4a8efed
commit 3d8feefbbc
9 changed files with 80 additions and 12 deletions
+3 -1
View File
@@ -501,7 +501,9 @@ function ConvertTo-LocalizedXaml {
if (-not $resolvesSomewhere) { $missingKeys.Add($key) }
if ($DynamicResources) { return "{DynamicResource Language_$key}" }
$value = if ($resolvesSomewhere) { Get-Translation -Key $key -Lang $Lang } else { $key }
return [System.Security.SecurityElement]::Escape($value)
# Literal line breaks in XML attributes are normalized to spaces by the reader.
# Character references preserve translated paragraphs in Text/ToolTip attributes.
return [System.Security.SecurityElement]::Escape($value).Replace("`r", '
').Replace("`n", '
')
}
$result = [System.Text.RegularExpressions.Regex]::Replace($Xaml, '%LANG:([A-Za-z0-9_]+)%', $evaluator)