File size: 391 Bytes
b902873
 
 
efddbeb
b902873
 
efddbeb
b902873
 
 
efddbeb
 
 
b902873
efddbeb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""
This module is used to translate manga from Japanese to English.
"""

from deep_translator import GoogleTranslator

def translate_manga(text: str) -> str:
	"""
	Translate manga from Japanese to English.
	"""
	translated_text = GoogleTranslator(source="ja", target="en").translate(text)
	print("Original text:", text)
	print("Translated text:", translated_text)
	
	return translated_text