diff --git a/docutranslate/app.py b/docutranslate/app.py index 4b32502..5dca05e 100644 --- a/docutranslate/app.py +++ b/docutranslate/app.py @@ -1102,7 +1102,7 @@ async def main_page(): "Expires": "0"} return FileResponse(index_path, headers=no_cache_headers) -@app.get("/EN", response_class=HTMLResponse, include_in_schema=False) +@app.get("/EN/{rest_of_path:path}", response_class=HTMLResponse, include_in_schema=False) async def main_page_EN(): index_path = Path(STATIC_DIR) / "index_EN.html" if not index_path.exists(): raise HTTPException(status_code=404, detail="index_EN.html not found") diff --git a/docutranslate/static/index.html b/docutranslate/static/index.html index 31b34f3..714e95f 100644 --- a/docutranslate/static/index.html +++ b/docutranslate/static/index.html @@ -1 +1 @@ - DocuTranslate - 交互式文档翻译

DocuTranslate

如果上传的文件本身是.md格式,此项可不选。

GitHub主页(欢迎star❤):
https://github.com/xunbu/docutranslate

交流QQ群: 1047781902

任务列表

当前没有任务,点击“新建任务”开始吧!

预览
原文
译文
\ No newline at end of file + DocuTranslate - 交互式文档翻译

DocuTranslate

如果上传的文件本身是.md格式,此项可不选。

GitHub主页(欢迎star❤):
https://github.com/xunbu/docutranslate

交流QQ群: 1047781902

任务列表

当前没有任务,点击“新建任务”开始吧!

预览
原文
译文
\ No newline at end of file diff --git a/docutranslate/static/index_EN.html b/docutranslate/static/index_EN.html index 430a1dd..4ef168e 100644 --- a/docutranslate/static/index_EN.html +++ b/docutranslate/static/index_EN.html @@ -1 +1 @@ - DocuTranslate - Interactive Document Translation

DocuTranslate

This can be skipped if the uploaded file is already in .md format.

GitHub Page (stars are welcome❤):
https://github.com/xunbu/docutranslate

QQ Group: 1047781902

Task List

No tasks currently. Click "New Task" to get started!

Preview
Original
Translation
\ No newline at end of file + DocuTranslate - Interactive Document Translation

DocuTranslate

This can be skipped if the uploaded file is already in .md format.

GitHub Page (stars are welcome❤):
https://github.com/xunbu/docutranslate

QQ Group: 1047781902

Task List

No tasks currently. Click "New Task" to get started!

Preview
Original
Translation
\ No newline at end of file