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 985b490 commit db9290c
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 db9290c

Please sign in to comment.