Skip to content

Commit

Permalink
Merge pull request #255 from chiu0602/main
Browse files Browse the repository at this point in the history
Support Traditional Chinese
  • Loading branch information
Byaidu authored Dec 17, 2024
2 parents 2067c1e + cae245c commit 4db6ca8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pdf2zh/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"AnythingLLM": AnythingLLMTranslator,
}
lang_map = {
"Chinese": "zh",
"Simplified Chinese": "zh",
"Traditional Chinese": "zh-TW",
"English": "en",
"French": "fr",
"German": "de",
Expand Down Expand Up @@ -309,7 +310,7 @@ def progress_bar(t: tqdm.tqdm):
lang_to = gr.Dropdown(
label="Translate to",
choices=lang_map.keys(),
value="Chinese",
value="Simplified Chinese",
)
page_range = gr.Radio(
choices=page_map.keys(),
Expand Down

0 comments on commit 4db6ca8

Please sign in to comment.