= commited on
Commit
e335716
·
1 Parent(s): 5ba349a

updated docs

Browse files
Files changed (4) hide show
  1. deep_translator/__init__.py +1 -1
  2. docs/usage.rst +5 -5
  3. setup.cfg +1 -1
  4. setup.py +1 -1
deep_translator/__init__.py CHANGED
@@ -8,7 +8,7 @@ from .mymemory import MyMemoryTranslator
8
 
9
  __author__ = """Nidhal Baccouri"""
10
  __email__ = '[email protected]'
11
- __version__ = '1.0.1'
12
 
13
  __all__ = [GoogleTranslator,
14
  PonsTranslator,
 
8
 
9
  __author__ = """Nidhal Baccouri"""
10
  __email__ = '[email protected]'
11
+ __version__ = '1.0.2'
12
 
13
  __all__ = [GoogleTranslator,
14
  PonsTranslator,
docs/usage.rst CHANGED
@@ -4,20 +4,20 @@ Usage
4
 
5
  .. code-block:: python
6
 
7
- from deep_translator import MyMemoryTranslator, PonsTranslator, LingueeTranslator
8
 
9
  english_text = 'happy coding'
10
 
11
- result_german = MyMemoryTranslator(source='auto', target='de').translate(payload=english_text)
12
 
13
  # Alternatively, you can pass languages by their name:
14
- translated = MyMemoryTranslator(source='english', target='german').translate(payload=english_text)
15
 
16
  # or maybe you want to translate a text file ?
17
- translated = MyMemoryTranslator(source='auto', target='german').translate_file('path/to/file')
18
 
19
  # or maybe you have many sentences in different languages and want to automate the translation process
20
- translated = MyMemoryTranslator(source='auto', target='de').translate_sentences(your_list_of_sentences)
21
 
22
 
23
  or maybe you would like to use the Pons translator: Pons.com
 
4
 
5
  .. code-block:: python
6
 
7
+ from deep_translator import GoogleTranslator, PonsTranslator, LingueeTranslator
8
 
9
  english_text = 'happy coding'
10
 
11
+ result_german = GoogleTranslator(source='auto', target='de').translate(text=english_text)
12
 
13
  # Alternatively, you can pass languages by their name:
14
+ translated = GoogleTranslator(source='english', target='german').translate(text=english_text)
15
 
16
  # or maybe you want to translate a text file ?
17
+ translated = GoogleTranslator(source='auto', target='german').translate_file('path/to/file')
18
 
19
  # or maybe you have many sentences in different languages and want to automate the translation process
20
+ translated = GoogleTranslator(source='auto', target='de').translate_sentences(your_list_of_sentences)
21
 
22
 
23
  or maybe you would like to use the Pons translator: Pons.com
setup.cfg CHANGED
@@ -1,5 +1,5 @@
1
  [bumpversion]
2
- current_version = 1.0.1
3
  commit = True
4
  tag = True
5
 
 
1
  [bumpversion]
2
+ current_version = 1.0.2
3
  commit = True
4
  tag = True
5
 
setup.py CHANGED
@@ -51,6 +51,6 @@ setup(
51
  test_suite='tests',
52
  tests_require=test_requirements,
53
  url='https://github.com/nidhaloff/deep_translator',
54
- version='1.0.1',
55
  zip_safe=False,
56
  )
 
51
  test_suite='tests',
52
  tests_require=test_requirements,
53
  url='https://github.com/nidhaloff/deep_translator',
54
+ version='1.0.2',
55
  zip_safe=False,
56
  )