An open API service indexing awesome lists of open source software.

https://github.com/tksh164/aprl-v2-helper-tools


https://github.com/tksh164/aprl-v2-helper-tools

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# APRLv2 helper tools

## recomm-yaml-translator.ps1

```powershell
$aprlFolderPath = 'J:\aprlv2\azure-resources'
$apiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
$location = 'japaneast'
$from = 'en'
$to = 'ja'

$filePaths = Get-ChildItem -File -Recurse -Filter '*.yaml' -LiteralPath $aprlFolderPath | Select-Object -ExpandProperty 'FullName'
$filePaths | .\recomm-yaml-translator.ps1 -TranslateFrom $from -TranslateTo $to -ApiKey $apiKey -Location $location -Overwrite
```

### Notes

- This script requires a [Translator resource](https://learn.microsoft.com/azure/ai-services/translator/text-translation/quickstart/rest-api) on Azure to run.
- Review the machine translation result before use it recommended because sometimes the machine translation result's quality is not good.