= commited on
Commit
a6786b3
·
1 Parent(s): cd7e299

updated readme and added logo

Browse files
Files changed (3) hide show
  1. README.rst +8 -1
  2. assets/icon.jpg +0 -0
  3. docs/usage.rst +1 -1
README.rst CHANGED
@@ -2,6 +2,13 @@
2
  deep_translator
3
  ##################
4
 
 
 
 
 
 
 
 
5
 
6
  .. image:: https://img.shields.io/pypi/v/deep_translator.svg
7
  :target: https://pypi.python.org/pypi/deep_translator
@@ -223,7 +230,7 @@ Google Translate
223
  texts = ["hallo welt", "guten morgen"]
224
 
225
  # the translate_sentences function is deprecated, use the translate_batch function instead
226
- translated = MyMemoryTranslator('de', 'en').translate_batch(texts)
227
 
228
  - Translate from a file:
229
 
 
2
  deep_translator
3
  ##################
4
 
5
+ .. image:: assets/icon.jpg
6
+ :width: 300
7
+ :align: center
8
+ :alt: deep-translator-icon
9
+
10
+ |
11
+
12
 
13
  .. image:: https://img.shields.io/pypi/v/deep_translator.svg
14
  :target: https://pypi.python.org/pypi/deep_translator
 
230
  texts = ["hallo welt", "guten morgen"]
231
 
232
  # the translate_sentences function is deprecated, use the translate_batch function instead
233
+ translated = GoogleTranslator('de', 'en').translate_batch(texts)
234
 
235
  - Translate from a file:
236
 
assets/icon.jpg ADDED
docs/usage.rst CHANGED
@@ -95,7 +95,7 @@ Google Translate
95
  texts = ["hallo welt", "guten morgen"]
96
 
97
  # the translate_sentences function is deprecated, use the translate_batch function instead
98
- translated = MyMemoryTranslator('de', 'en').translate_batch(texts)
99
 
100
  - Translate from a file:
101
 
 
95
  texts = ["hallo welt", "guten morgen"]
96
 
97
  # the translate_sentences function is deprecated, use the translate_batch function instead
98
+ translated = GoogleTranslator('de', 'en').translate_batch(texts)
99
 
100
  - Translate from a file:
101