add somewhat of a lang support (needs improvement)

This commit is contained in:
MyDrift
2024-08-24 14:02:24 +02:00
parent c8ccb8527d
commit 6ab99d5ace
2 changed files with 51 additions and 1 deletions

View File

@ -86,7 +86,7 @@ function Invoke-WPFGetIso {
# TODO: Have to correct the language to actually be a working one
Set-Location -Path $env:temp
& $fidopath -Win 'Windows 11' -Rel $sync["ISORelease"].SelectedItem -Arch "x64"
& $fidopath -Win 'Windows 11' -Rel $sync["ISORelease"].SelectedItem -Arch "x64" -Lang "$(Get-FidoLangFromCulture -langName `"$($sync.ISOLanguage.SelectedItem)`")"
Set-Location $originalLocation
$filePath = Get-ChildItem -Path "$env:temp" -Filter "Win11*.iso" | Sort-Object LastWriteTime -Descending | Select-Object -First 1
}