Skip to content

Load languages directly from the directory #327

@vE5li

Description

@vE5li

Currently there is a hardcoded Language enum in localization/mod.rs that defines all supported languages. This enum can be removed and the client could instead load the supported languages from the language directory (archive/data/languages) directly.

The main benefit is that adding a new language does not require modifying or recompiling Korangar.

For this issue to be complete the PR needs to:

  • Add a field to the Localization that defines the display name of the language (currently this is hard-coded)
  • Update the Interface Settings window drop down options
  • Update the language files test in localization/mod.rs
  • Remove the Language enum

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions