https://github.com/tksh164/aprl-v2-helper-tools
https://github.com/tksh164/aprl-v2-helper-tools
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tksh164/aprl-v2-helper-tools
- Owner: tksh164
- License: mit
- Created: 2024-07-13T09:30:01.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-03T06:27:34.000Z (about 1 year ago)
- Last Synced: 2025-06-03T18:22:56.902Z (about 1 year ago)
- Language: PowerShell
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.