Localization: add first-launch language selection and persistent locale settings

Ouverte
#42 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
30/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Calme
Stack technique
csharp, unity

Piste de recherche

Start by locating the application's first-launch/bootstrap flow, the Settings screen, locale persistence code, and the existing test and visual-check entry points. Implement detection, explicit confirmation, English fallback, and changeable locale settings across the relevant UI and persistence paths, including migration for existing installs. Done means all acceptance criteria pass, including tests for first launch, persistence, invalid locales, fallback, migration, input, and representative layouts in all six languages.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

enhancement help wanted

Summary

Add a first-launch language selection flow and persist the player's chosen locale. The selected language must remain changeable from Settings.

The goal is to make HitTheKit understandable from the first screen and establish a reliable localization foundation for international players.

Initial languages

  • English (en)
  • Italiano (it)
  • Deutsch (de)
  • Español (es)
  • Français (fr)
  • Română (ro)

Language names should be displayed in their native form. Do not use flags as language selectors.

First-launch experience

On the first launch:

  1. detect the operating-system locale when it matches a supported language;
  2. preselect that language, otherwise preselect English;
  3. show a clear language-selection screen before entering the main experience;
  4. require an explicit confirmation from the player;
  5. persist only the stable locale code;
  6. continue to the normal application flow.

On later launches, skip this screen and use the saved locale.

Existing installations without a saved locale should be treated as a first launch for this preference, without resetting unrelated settings or progress.

Settings behavior

Add a language selector under Settings → Language.

Changing the language should:

  • update the visible interface immediately when technically safe;
  • otherwise show a clear message that the change applies after reopening the current screen;
  • preserve all unrelated settings and progress;
  • remain effective after restarting the application.

The selector must be usable with mouse, keyboard, and the application's supported drum-navigation input.

Localization contract

  • English is the explicit fallback locale.
  • Missing translations must fall back to the English source string rather than displaying an empty label or localization key.
  • UI components must not contain new player-facing hardcoded strings outside the localization system.
  • Unknown or invalid saved locale codes must fail safely to English.
  • Text rendering must support accents and Romanian diacritics correctly.
  • Layouts must tolerate text expansion, with particular attention to German labels.

Acceptance criteria

  • A clean installation opens the language-selection screen before the main menu.
  • The supported system locale is preselected; unsupported locales preselect English.
  • The user can choose and confirm any of the six initial locales.
  • The confirmed locale is persisted and restored on the next launch.
  • The language can be changed later from Settings.
  • The interface never displays an empty string or raw localization key when a translation is missing.
  • An invalid persisted locale falls back deterministically to English.
  • Existing progress and settings are not reset by the migration.
  • Selection and confirmation work with mouse and keyboard; drum-navigation behavior is covered where available.
  • Automated tests cover first launch, system-locale preselection, persistence, relaunch, settings changes, migration, and fallback behavior.
  • Representative screens are visually checked in all six languages at the supported desktop resolutions.

Translation quality boundary

This issue establishes the complete locale-selection and persistence behavior. It does not authorize unreviewed machine-generated translations to be treated as final copy.

Each language may be completed or proofread in follow-up contributions. Incomplete translations must remain visible through the English fallback until reviewed.

Out of scope

  • automatic translation services;
  • account or cloud synchronization;
  • changing gameplay timing or scoring;
  • redesigning unrelated screens;
  • using country flags to represent languages.
Langage dominant
C#
Étoiles
0
Forks
0
Merge moyen
16 h 9 min
PR mergées (30 j)
7

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Codewriter90x/HitTheKit

Toutes les issues de Codewriter90x/HitTheKit

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.