To install batchTranslate, simply run the following command:
pip install batchTranslateTo translate text, use the translate() function. The function accepts two parameters:
- times: The number of times you want to apply the translation process.
- original: The original text that you wish to translate.
Here's an example:
from batchTranslate import translate
result = translate(2, "never gonna give you up")
print(result)In this example, the text "never gonna give you up" will be translated twice, and the translated result will be printed.