Skip to content

Commit

Permalink
Set default translate to googletrans
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Dec 13, 2020
1 parent 797af07 commit d94a362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Javinizer/Private/Get-TranslatedString.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function Get-TranslatedString {
)

process {
if ($Module -eq 'googletrans') {
$translatePath = Join-Path -Path ((Get-Item $PSScriptRoot).Parent) -ChildPath 'translate.py'
} else {
if ($Module -eq 'google_trans_new') {
$translatePath = Join-Path -Path ((Get-Item $PSScriptRoot).Parent) -ChildPath 'translate_new.py'
} else {
$translatePath = Join-Path -Path ((Get-Item $PSScriptRoot).Parent) -ChildPath 'translate.py'
}

if ($null -ne $String -and $String -ne '') {
Expand Down

0 comments on commit d94a362

Please sign in to comment.