diff --git a/app/dictionary.py b/app/dictionary.py index 324cb4b..61472cb 100644 --- a/app/dictionary.py +++ b/app/dictionary.py @@ -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( diff --git a/app/static/index.html b/app/static/index.html index 41dd552..5343b89 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -5,7 +5,7 @@