=
commited on
Commit
·
8593ca0
1
Parent(s):
09af6bc
updated language detection functions
Browse files- README.rst +5 -4
- deep_translator/__init__.py +1 -1
- setup.cfg +1 -1
- setup.py +1 -1
README.rst
CHANGED
@@ -86,7 +86,8 @@ Features
|
|
86 |
* Support for Pons translator (pons.com)
|
87 |
* Support for the Linguee translator
|
88 |
* Support for the Mymemory translator
|
89 |
-
* Automatic language detection
|
|
|
90 |
* Translate directly from a text file
|
91 |
* Get multiple translation for a word
|
92 |
* Automate the translation of different paragraphs in different languages
|
@@ -113,7 +114,7 @@ This includes the google, pons, linguee and mymemory translator (at least for no
|
|
113 |
translators will be integrated in the future.
|
114 |
|
115 |
Imports
|
116 |
-
|
117 |
|
118 |
.. code-block:: python
|
119 |
|
@@ -126,7 +127,7 @@ Imports
|
|
126 |
|
127 |
|
128 |
Check Supported Languages
|
129 |
-
|
130 |
|
131 |
.. note::
|
132 |
|
@@ -142,7 +143,7 @@ Check Supported Languages
|
|
142 |
langs_dict = GoogleTranslator.get_supported_languages(as_dict=True) # output: {arabic: ar, french: fr, english:en etc...}
|
143 |
|
144 |
Language Detection
|
145 |
-
|
146 |
|
147 |
.. note::
|
148 |
|
|
|
86 |
* Support for Pons translator (pons.com)
|
87 |
* Support for the Linguee translator
|
88 |
* Support for the Mymemory translator
|
89 |
+
* Automatic single language detection
|
90 |
+
* Batch language detection
|
91 |
* Translate directly from a text file
|
92 |
* Get multiple translation for a word
|
93 |
* Automate the translation of different paragraphs in different languages
|
|
|
114 |
translators will be integrated in the future.
|
115 |
|
116 |
Imports
|
117 |
+
--------
|
118 |
|
119 |
.. code-block:: python
|
120 |
|
|
|
127 |
|
128 |
|
129 |
Check Supported Languages
|
130 |
+
---------------------------
|
131 |
|
132 |
.. note::
|
133 |
|
|
|
143 |
langs_dict = GoogleTranslator.get_supported_languages(as_dict=True) # output: {arabic: ar, french: fr, english:en etc...}
|
144 |
|
145 |
Language Detection
|
146 |
+
------------------
|
147 |
|
148 |
.. note::
|
149 |
|
deep_translator/__init__.py
CHANGED
@@ -9,7 +9,7 @@ from .detection import single_detection, batch_detection
|
|
9 |
|
10 |
__author__ = """Nidhal Baccouri"""
|
11 |
__email__ = '[email protected]'
|
12 |
-
__version__ = '1.1.
|
13 |
|
14 |
__all__ = [GoogleTranslator,
|
15 |
PonsTranslator,
|
|
|
9 |
|
10 |
__author__ = """Nidhal Baccouri"""
|
11 |
__email__ = '[email protected]'
|
12 |
+
__version__ = '1.1.7'
|
13 |
|
14 |
__all__ = [GoogleTranslator,
|
15 |
PonsTranslator,
|
setup.cfg
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
[bumpversion]
|
2 |
-
current_version = 1.1.
|
3 |
commit = True
|
4 |
tag = True
|
5 |
|
|
|
1 |
[bumpversion]
|
2 |
+
current_version = 1.1.7
|
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.
|
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.7',
|
55 |
zip_safe=False,
|
56 |
)
|