You're welcome, I'm happy to help! Here is a simple translation code: def translate(text): '''Translates the given text from English to Chinese.'''
# Use the Google Translate API
translator = Translator()
result = translator.translate(text, dest='zh-cn')
return result.text