| 189 | return translations |
| 190 | |
| 191 | def usage(): |
| 192 | print('Usage:', sys.argv[0], 'Some English text to translate') |
| 193 | print('For a custom source language add a two-letter code with a colon in the beginning:') |
| 194 | print(' ', sys.argv[0], 'de:Some German text to translate') |
| 195 | print() |
| 196 | print('Supported DeepL languages:') |
| 197 | print(', '.join(DEEPL_TARGET_LANGUAGES)) |
| 198 | print('Supported Google languages:') |
| 199 | print(', '.join(GOOGLE_TARGET_LANGUAGES)) |
| 200 | |
| 201 | |
| 202 | # Returns a list of all languages supported by the core (search) in data/categories.txt |