Closed johnfelipe closed 1 year ago
Hi, Maybe the Readme-file is not clear about it, but the Azure-service expects you to pass an API-key as serviceConfig (not a JSON-filename!).
attranslate --srcFile=general.yml --srcLng=en --srcFormat=yaml --targetFile=general-es.yml --targetLng=es --targetFormat=yaml --service=google-translate --serviceConfig=traducciones-352415-79659df1c6f1.json
can you share me command with azure for translate entire folder?
I cannot share a complete Azure-command because I do not have an Azure-API-key right now.
But once you have a valid API-key, you can pass this API-key via —serviceConfig=<yourAPIKey> —service=azure
. No other changes should be necessary.
but for folder?
El lun, 8 ago 2022 a las 19:17, Felix K @.***>) escribió:
I cannot share a complete Azure-command because I do not have an Azure-API-key right now. But once you have a valid API-key, you can pass this API-key via —serviceConfig=
—service=azure. No other changes should be necessary. — Reply to this email directly, view it on GitHub https://github.com/fkirc/attranslate/issues/236#issuecomment-1208750478, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADIWFBAESH5RG3ZKNU7POTVYGPRHANCNFSM55WE3ERA . You are receiving this because you authored the thread.Message ID: @.***>
To translate a folder, you need to invoke attranslate for each file separately. But you could write a shell-script that does those invocations in parallel for all the files that you have in a given folder.
ahh ok, like with others translator, may be like REQUEST and feature create folder translator tnks
El lun, 8 ago 2022 a las 19:20, Felix K @.***>) escribió:
To translate a folder, you need to invoke attranslate for each file separately. But you could write a shell-script that does those invocations in parallel for all the files that you have in a given folder.
— Reply to this email directly, view it on GitHub https://github.com/fkirc/attranslate/issues/236#issuecomment-1208752165, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADIWFCZ523NI7R3IIL55YTVYGP3ZANCNFSM55WE3ERA . You are receiving this because you authored the thread.Message ID: @.***>
I am closing the issue because attranslate is by design intended to be invoked multiple times from a script (one invocation for each output-file). That being said, it would be perfectly possible to write a wrapper-script around attranslate that searches through a folder and invokes attranslate multiple times.
al files is in en folder then i need all files to es folder
with will be command for google and azure?
GOOGLE WORKS:
attranslate --srcFile=general.yml --srcLng=en --srcFormat=yaml --targetFile=general-es.yml --targetLng=es --targetFormat=yaml --service=google-translate --serviceConfig=traducciones-352415-79659df1c6f1.json