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