Skip to content

Add more interface languages #14

Description

@lippdev

The UI strings live in src/ConsoleMode/Resources/Strings.<culture>.json (pt-BR and en-US today). Missing keys fall back to Portuguese.

To add a language (e.g. es-ES):

  1. Copy Strings.en-US.json to Strings.es-ES.json and translate the values (keep the keys)
  2. Add an <EmbeddedResource> line for it in ConsoleMode.csproj, next to the existing two
  3. In Services/LocalizationService.cs: add a constant, load it into Catalogs, and update SetLanguage/Normalize, which currently only know pt-BR and en-US
  4. Add it to LanguageOptions in ViewModels/MainViewModel.cs (plus a LanguageXxx label in each strings file)
  5. Optional: Services/ReleaseNotes.cs picks English or Portuguese notes; a new language can use English

Spanish, French and German would be great first additions.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions