Skip to content

Commit

Permalink
Add support for LangIDOnPath templates (dotnet#7187)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfortescue committed Apr 22, 2021
1 parent 4101e1b commit c772881
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions eng/common/generate-locproject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,19 @@ $locJson = @{
}
if ($continue)
{
return @{
SourceFile = $sourceFile
CopyOption = "LangIDOnName"
OutputPath = $outputPath
if ($_.Directory.Name -eq 'en' -and $_.Extension -eq '.json') {
return @{
SourceFile = $sourceFile
CopyOption = "LangIDOnPath"
OutputPath = "$($_.Directory.Parent.FullName | Resolve-Path -Relative)\"
}
}
else {
return @{
SourceFile = $sourceFile
CopyOption = "LangIDOnName"
OutputPath = $outputPath
}
}
}
}
Expand Down

0 comments on commit c772881

Please sign in to comment.