mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-01-31 05:10:45 -06:00
Removed an unneeded import in translator module
This commit is contained in:
parent
78079e142f
commit
0882e4707d
@ -1,10 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import keys
|
||||
from microsofttranslator import Translator
|
||||
|
||||
def translate(text="", source="auto", target="en"):
|
||||
t = Translator("twblue", "4KZA26GYIfmVAqQA/z16Hlucbg64hVSDTIpRjT2FqIU=")
|
||||
return t.translate(text, target).encode("utf-8")
|
||||
return t.translate(text, target)
|
||||
|
||||
|
||||
languages = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user