= commited on
Commit
1b424c6
·
1 Parent(s): 5a40797

fixed readme

Browse files
Files changed (4) hide show
  1. README.rst +8 -0
  2. deep_translator/__init__.py +1 -1
  3. setup.cfg +1 -1
  4. setup.py +1 -1
README.rst CHANGED
@@ -111,6 +111,14 @@ Usage
111
 
112
  - Example of checking the supported languages for the google translator:
113
 
 
 
 
 
 
 
 
 
114
 
115
  - Simple translation:
116
 
 
111
 
112
  - Example of checking the supported languages for the google translator:
113
 
114
+ .. code-block:: python
115
+
116
+ # default return type is a list
117
+ langs_list = GoogleTranslator.get_supported_languages() # output: [arabic, french, english etc...]
118
+
119
+ # alternatively, you can the dictionary containing languages mapped to their abbreviation
120
+ langs_dict = GoogleTranslator.get_supported_languages(as_dict=True) # output: {arabic: ar, french: fr, english:en etc...}
121
+
122
 
123
  - Simple translation:
124
 
deep_translator/__init__.py CHANGED
@@ -8,7 +8,7 @@ from .mymemory import MyMemoryTranslator
8
 
9
  __author__ = """Nidhal Baccouri"""
10
  __email__ = 'nidhalbacc@gmail.com'
11
- __version__ = '1.1.1'
12
 
13
  __all__ = [GoogleTranslator,
14
  PonsTranslator,
 
8
 
9
  __author__ = """Nidhal Baccouri"""
10
  __email__ = 'nidhalbacc@gmail.com'
11
+ __version__ = '1.1.2'
12
 
13
  __all__ = [GoogleTranslator,
14
  PonsTranslator,
setup.cfg CHANGED
@@ -1,5 +1,5 @@
1
  [bumpversion]
2
- current_version = 1.1.1
3
  commit = True
4
  tag = True
5
 
 
1
  [bumpversion]
2
+ current_version = 1.1.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.1.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.1.2',
55
  zip_safe=False,
56
  )