fix(reader): fix reader word popup translation key and sanitize token lookup
This commit is contained in:
@@ -273,6 +273,9 @@ async def lookup_term(query: str) -> Dict[str, Any]:
|
||||
result["translation"] = mm_data.get("translation", "")
|
||||
result["translations_list"] = [result["translation"]] if result["translation"] else []
|
||||
|
||||
# Alias translation_ru for client compatibility
|
||||
result["translation_ru"] = result["translation"]
|
||||
|
||||
# Store into SQLite cache
|
||||
with get_db() as conn:
|
||||
conn.execute(
|
||||
|
||||
Reference in New Issue
Block a user