nidhal baccouri commited on
Commit
1b6c336
·
1 Parent(s): 10bc251

added deep-translator swagger ui to docs

Browse files
Files changed (2) hide show
  1. deep_translator/google.py +2 -4
  2. docs/README.rst +11 -1
deep_translator/google.py CHANGED
@@ -118,8 +118,6 @@ class GoogleTranslator(BaseTranslator):
118
 
119
 
120
  if __name__ == "__main__":
121
- trans = GoogleTranslator(source='auto', target='de')
122
- res = trans.translate("cute")
123
  print("translation: ", res)
124
- trans.target = "fr"
125
- print(f"changed target to: {trans.target} => translation changed: {trans.translate('cute')}")
 
118
 
119
 
120
  if __name__ == "__main__":
121
+ trans = GoogleTranslator(source='auto', target='zh-CN')
122
+ res = trans.translate("good")
123
  print("translation: ", res)
 
 
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
-
48
 
49
  |
50
  |
@@ -702,6 +702,16 @@ MIT license
702
 
703
  Copyright (c) 2020-present, Nidhal Baccouri
704
 
 
 
 
 
 
 
 
 
 
 
705
 
706
  ===========================
707
  The Translator++ mobile app
 
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
  |
 
702
 
703
  Copyright (c) 2020-present, Nidhal Baccouri
704
 
705
+ ===========
706
+ Swagger UI
707
+ ===========
708
+
709
+ deep-translator offers an api server for easy integration with other applications. Non python applications
710
+ can communicate with the api directly and leverage the features of deep-translator
711
+
712
+ Access the api here: https://deep-translator-api.azurewebsites.net/docs
713
+
714
+
715
 
716
  ===========================
717
  The Translator++ mobile app