Update translate-file.ps1

This commit is contained in:
Markus Fleschutz 2021-02-12 12:24:41 +01:00 committed by GitHub
parent 4118bd7142
commit 75924194bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,11 +6,11 @@
.NOTES Author: Markus Fleschutz / License: CC0
#>
param([string]$SourceFile = "", [string]$SourceLanguage = "", [string]$TargetLanguage = "")
$PathToRepo = "$PSScriptRoot/.."
param($SourceFile = "", $SourceLanguage = "", $TargetLanguage = "")
try {
$PathToRepo = "$PSScriptRoot/.."
if ($SourceFile -eq "" ) {
$SourceFile = read-host "Enter path to file"
}