WatcherApps / GameChatTranslator

13 stars 2 forks source link

Target language Implementation #7

Closed Ambrotus closed 2 years ago

Ambrotus commented 2 years ago

I think typed language is okay here. It can take short hand and fully typed languages. We can compare to a dictionary of languages via

# default return type is a list
langs_list = GoogleTranslator.get_supported_languages()  # output: [arabic, french, english etc...]

# alternatively, you can the dictionary containing languages mapped to their abbreviation
langs_dict = GoogleTranslator.get_supported_languages(as_dict=True)  # output: {arabic: ar, french: fr, english:en etc...}

https://deep-translator.readthedocs.io/en/latest/README.html#features