Skip to content

Commit

Permalink
#131 updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Jan 13, 2024
1 parent e8285b0 commit a706d79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions dependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ arekit @ git+https://github.com/nicolay-r/[email protected]
open-nre==0.1.1
nltk==3.8.1
googletrans==3.1.0a0
httpcore==0.9.1
requests
10 changes: 8 additions & 2 deletions test/test_translation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import unittest

from arelight.third_party.googletrans import translate_value

x = translate_value("привет", dest="en", src="ru")
print(x)

class TestTranslation(unittest.TestCase):

def test(self):
x = translate_value("привет", dest="en", src="ru")
print(x)

0 comments on commit a706d79

Please sign in to comment.