dean.du commited on
Commit
8f05e68
·
1 Parent(s): 5d4d555

Update usage.rst

Browse files

fix the exception: revoke the get_supported_languages function as the classmethod

Files changed (1) hide show
  1. docs/usage.rst +2 -2
docs/usage.rst CHANGED
@@ -38,10 +38,10 @@ Check Supported Languages
38
  .. code-block:: python
39
 
40
  # default return type is a list
41
- langs_list = GoogleTranslator.get_supported_languages() # output: [arabic, french, english etc...]
42
 
43
  # alternatively, you can the dictionary containing languages mapped to their abbreviation
44
- langs_dict = GoogleTranslator.get_supported_languages(as_dict=True) # output: {arabic: ar, french: fr, english:en etc...}
45
 
46
  Language Detection
47
  -------------------
 
38
  .. code-block:: python
39
 
40
  # default return type is a list
41
+ langs_list = GoogleTranslator().get_supported_languages() # output: [arabic, french, english etc...]
42
 
43
  # alternatively, you can the dictionary containing languages mapped to their abbreviation
44
+ langs_dict = GoogleTranslator().get_supported_languages(as_dict=True) # output: {arabic: ar, french: fr, english:en etc...}
45
 
46
  Language Detection
47
  -------------------