Skip to content

Commit

Permalink
add(gui): update default language settings to use environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
namazuchin committed Jan 4, 2025
1 parent ba7b3f2 commit f89f474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdf2zh/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@ def progress_bar(t: tqdm.tqdm):
lang_from = gr.Dropdown(
label="Translate from",
choices=lang_map.keys(),
value="English",
value=os.getenv("PDF2ZH_LANG_FROM", "English"),
)
lang_to = gr.Dropdown(
label="Translate to",
choices=lang_map.keys(),
value="Simplified Chinese",
value=os.getenv("PDF2ZH_LANG_TO", "Simplified Chinese"),
)
page_range = gr.Radio(
choices=page_map.keys(),
Expand Down

0 comments on commit f89f474

Please sign in to comment.