aoeu
This commit is contained in:
@@ -39,7 +39,7 @@ async def mutate_chinese_titles(data: Dict[str, Any]) -> None:
|
|||||||
try:
|
try:
|
||||||
# Translate Chinese text to English
|
# Translate Chinese text to English
|
||||||
translation = await translator.translate(value, dest='en')
|
translation = await translator.translate(value, dest='en')
|
||||||
data[key] = translation.text + data[key]
|
data[key] = data[key] + "--" + translation.text
|
||||||
|
|
||||||
console.print(f"[dim]Translated '{value}' → '{translation.text}'[/dim]")
|
console.print(f"[dim]Translated '{value}' → '{translation.text}'[/dim]")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user