Skip to content

Formalize i18n with a dedicated translation file and full English support #377

Description

@dcox761

The WebUI has a language Radio toggle (en/zh) that updates form labels, but Markdown headers, button text, placeholder text, info tooltips, and advanced option labels remain in the initial language. Translations are scattered inline throughout the 1400-line script with inconsistent patterns (ternary operators, separate dicts in change_language()).

Fix: Extract all 69 translatable strings into a dedicated i18n.py module with complete zh/en dictionaries. Use a t("key") lookup for widget creation and a simple STRINGS[lang]["key"] in change_language(). All UI elements now toggle consistently. Default language controllable via VOXCPM_LANG environment variable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions