Nidhal Baccouri
commited on
Commit
·
4379cba
1
Parent(s):
4271d03
fixed build
Browse files- docs/README.rst +3 -2
docs/README.rst
CHANGED
|
@@ -44,7 +44,7 @@ A flexible **FREE** and **UNLIMITED** tool to translate between different langua
|
|
| 44 |
|
| 45 |
* Free software: MIT license
|
| 46 |
* Documentation: https://deep-translator.readthedocs.io.
|
| 47 |
-
* Swagger API: https://deep-translator-api.azurewebsites.net/docs
|
| 48 |
|
| 49 |
|
|
| 50 |
|
|
|
@@ -209,7 +209,6 @@ Check Supported Languages
|
|
| 209 |
# alternatively, you can the dictionary containing languages mapped to their abbreviation
|
| 210 |
langs_dict = GoogleTranslator().get_supported_languages(as_dict=True) # output: {arabic: ar, french: fr, english:en etc...}
|
| 211 |
|
| 212 |
-
|
| 213 |
Language Detection
|
| 214 |
------------------
|
| 215 |
|
|
@@ -258,8 +257,10 @@ Google Translate
|
|
| 258 |
translated = GoogleTranslator(source='en', target='de').translate(text=text)
|
| 259 |
|
| 260 |
- You can also reuse the Translator class and change/update its properties.
|
|
|
|
| 261 |
(Notice that this is important for performance too since instantiating new objects is expensive)
|
| 262 |
|
|
|
|
| 263 |
.. code-block:: python
|
| 264 |
|
| 265 |
# let's say first you need to translate from auto to german
|
|
|
|
| 44 |
|
| 45 |
* Free software: MIT license
|
| 46 |
* Documentation: https://deep-translator.readthedocs.io.
|
| 47 |
+
* Swagger API: https://deep-translator-api.azurewebsites.net/docs.
|
| 48 |
|
| 49 |
|
|
| 50 |
|
|
|
|
|
| 209 |
# alternatively, you can the dictionary containing languages mapped to their abbreviation
|
| 210 |
langs_dict = GoogleTranslator().get_supported_languages(as_dict=True) # output: {arabic: ar, french: fr, english:en etc...}
|
| 211 |
|
|
|
|
| 212 |
Language Detection
|
| 213 |
------------------
|
| 214 |
|
|
|
|
| 257 |
translated = GoogleTranslator(source='en', target='de').translate(text=text)
|
| 258 |
|
| 259 |
- You can also reuse the Translator class and change/update its properties.
|
| 260 |
+
|
| 261 |
(Notice that this is important for performance too since instantiating new objects is expensive)
|
| 262 |
|
| 263 |
+
|
| 264 |
.. code-block:: python
|
| 265 |
|
| 266 |
# let's say first you need to translate from auto to german
|