Bighnesh Sahoo
commited on
Commit
·
40fe929
1
Parent(s):
b96c7cf
updated README.rst to add documentation regarding the -lang flag for the terminal usage
Browse files- README.rst +7 -3
README.rst
CHANGED
@@ -486,8 +486,7 @@ the right arguments, which are the translator you want to use, source language,
|
|
486 |
you want to translate.
|
487 |
|
488 |
For example, provide "google" as an argument to use the google translator. Alternatively you can use
|
489 |
-
the other supported translators.
|
490 |
-
translators in this library.
|
491 |
|
492 |
.. code-block:: console
|
493 |
|
@@ -505,6 +504,12 @@ If you want, you can also pass the source and target language by their abbreviat
|
|
505 |
|
506 |
$ deep_translator -trans "google" -src "en" -tg "de" -txt "happy coding"
|
507 |
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
======
|
509 |
Tests
|
510 |
======
|
@@ -619,4 +624,3 @@ Here are some screenshots:
|
|
619 |
:width: 100%
|
620 |
:height: 300
|
621 |
:alt: screenshot3
|
622 |
-
|
|
|
486 |
you want to translate.
|
487 |
|
488 |
For example, provide "google" as an argument to use the google translator. Alternatively you can use
|
489 |
+
the other supported translators.
|
|
|
490 |
|
491 |
.. code-block:: console
|
492 |
|
|
|
504 |
|
505 |
$ deep_translator -trans "google" -src "en" -tg "de" -txt "happy coding"
|
506 |
|
507 |
+
If you want the list of languages supported by a translator service, just pass the translator service as an argument to the -trans flag followed by the -lang/--languages flag. For example:
|
508 |
+
|
509 |
+
.. code-block:: console
|
510 |
+
|
511 |
+
$ deep_translator -trans "google" -lang
|
512 |
+
|
513 |
======
|
514 |
Tests
|
515 |
======
|
|
|
624 |
:width: 100%
|
625 |
:height: 300
|
626 |
:alt: screenshot3
|
|