Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit dd79543

Browse files
Sync shared code from arcade (#121)
Co-authored-by: dougbu <[email protected]>
1 parent a2880db commit dd79543

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

eng/common/generate-locproject.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if (-not $wxlFiles) {
4545
}
4646
}
4747

48-
$macosHtmlEnFiles = Get-ChildItem -Recurse -Path "$SourcesDirectory" | Where-Object { $_.FullName -Match "en\.lproj\\.+\.html" } # add installer HTML files
48+
$macosHtmlEnFiles = Get-ChildItem -Recurse -Path "$SourcesDirectory" | Where-Object { $_.FullName -Match "en\.lproj\\.+\.html$" } # add installer HTML files
4949
$macosHtmlFiles = @()
5050
if ($macosHtmlEnFiles) {
5151
$macosHtmlEnFiles | ForEach-Object {
@@ -148,12 +148,17 @@ $locJson = @{
148148
}
149149
}
150150
$sourceFile = ($_.FullName | Resolve-Path -Relative)
151+
$lciFile = $sourceFile + ".lci"
151152
if ($continue) {
152-
return @{
153+
$result = @{
153154
SourceFile = $sourceFile
154155
CopyOption = "LangIDOnPath"
155156
OutputPath = $outputPath
156157
}
158+
if (Test-Path $lciFile -PathType Leaf) {
159+
$result["LciFile"] = $lciFile
160+
}
161+
return $result
157162
}
158163
}
159164
)

0 commit comments

Comments
 (0)