Renamed to translate-text.ps1

This commit is contained in:
Markus Fleschutz
2020-12-08 12:36:22 +00:00
parent dd14dba22d
commit a600b6dd18
3 changed files with 10 additions and 7 deletions

6
Scripts/clone-repos.ps1 Normal file → Executable file
View File

@ -1,17 +1,17 @@
#!/snap/bin/powershell
# Syntax: ./clone-repos.ps1
# Description: clones well-known Git repositories
# Description: clones well-known Git repositories into the current directory.
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
$Repos = "https://github.com/fleschutz/PowerShell","https://github.com/fleschutz/CWTS"
$Repos = "https://github.com/commonmark/cmark", "https://github.com/opencv/opencv", "https://github.com/openzfs/zfs", "https://github.com/synesthesiam/voice2json", "https://github.com/fleschutz/CWTS", "https://github.com/fleschutz/cubesum", "https://github.com/fleschutz/PowerShell","https://github.com/fleschutz/CWTS", "https://github.com/fleschutz/eventdriven"
foreach ($Repo in $Repos) {
$Answer = read-host "Do you want to clone $Repo (y/n)"
if ($Answer -eq "y") {
git clone $Repos
git clone $Repo
}
}

View File

@ -1,12 +1,15 @@
#!/snap/bin/powershell
# Syntax: ./translate.ps1
# Description: translates the given text
# Syntax: ./translate-text.ps1 [<text>]
# Description: translates the given text into other languages
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
$SourceText = "Hello World!"
param([string]$SourceText)
if ($SourceText -eq "" ) {
$SourceText = "Hello World!"
}
$SourceLang = "en"
$TargetLanguages = "af","da","de","el","es","hr","it","ja","ko","pl","pt","nl","ru","tr","uk","vi"