From f1ac655ce9dccb400ab4df5269ed2dcba02c71c3 Mon Sep 17 00:00:00 2001 From: Yanis BINARD Date: Thu, 9 Apr 2026 12:06:45 +0200 Subject: [PATCH 1/2] Add French translation for ui.json (fr-FR locale) --- src/i18n/fr/ui.json | 63 +++++++++++++++++++++++++++++++++++++++++++++ src/i18n/index.ts | 1 + 2 files changed, 64 insertions(+) create mode 100644 src/i18n/fr/ui.json diff --git a/src/i18n/fr/ui.json b/src/i18n/fr/ui.json new file mode 100644 index 0000000..1777759 --- /dev/null +++ b/src/i18n/fr/ui.json @@ -0,0 +1,63 @@ +{ + "app_name": "GITVANA", + "alpha": "ALPHA", + + "nav_play": "Jouer", + "nav_docs": "Documentation", + "nav_changelog": "Changelog", + "nav_blog": "Blog", + "nav_stats": "Stats", + + "act_level": "ACTE {{act}} — NIVEAU {{order}}", + "concept": "CONCEPT", + "objectives": "OBJECTIFS", + "start_level": "DÉBUTER LE NIVEAU", + + "stage_clear": "NIVEAU TERMINÉ!", + "commands_used": "Commandes utilisées", + "par_3_stars": "Par (3 étoiles)", + "retry": "RECOMMENCER", + "share": "PARTAGER", + "next_level": "NIVEAU SUIVANT", + + "terminal": "TERMINAL", + "undo": "ANNULER", + "home": "Accueil", + "docs": "DOCUMENTATION", + "report_bug": "BUG", + "mute": "Couper le son", + "unmute": "Rétablir le son", + "restart": "Recommencer le niveau", + + "new_commands": "NOUVELLES:", + "progress": "{{passed}}/{{total}}", + "cmds": "{{count}} cmds", + + "your_journey": "TON ÉPOPÉE", + "anonymous_monk": "Moine Anonyme", + + "no_commits_yet": "Aucun commit pour l'instant", + "make_first_commit": "Réalise ton premier git commit", + "commit_graph": "GRAPHE DES COMMITS", + "detached_head": "HEAD DÉTACHÉE", + + "nothing_to_undo": "Rien à annuler.", + "undo_restored": "Annuler: rétabli à avant la dernière commande.", + "command_not_found": "{{cmd}}: commande introuvable", + + "mobile_title": "GITVANA", + "mobile_message": "Gitvana nécessite un clavier et un écran plus large.", + "mobile_hint": "Merci de visiter le site sur un ordinateur.", + "mobile_joke": "Le terminal du monastère ne rentre pas dans ta poche. Les moines ont essayé. Cela a mal fini.", + + "help_title": "GITVANA — Terminal du Monastère", + "help_git": "Commandes Git (quête principale):", + "help_shell": "Commandes Shell (kit de survie):", + "help_meta": "Meta:", + + "landing_tagline": "Atteins l'éveil de/l'illumination git", + "landing_subtitle": "Apprends git en jouant. Une aventure sur navigateur avec un vrai terminal, {{max_level}} niveaux, et un chat qui juge.", + "landing_play": "JOUER MAINTENANT", + "landing_continue": "CONTINUER", + "landing_read_docs": "LIRE LA DOCUMENTATION" +} \ No newline at end of file diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 464e498..180421e 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -23,6 +23,7 @@ let currentData: Record> = {}; // Available locales (add new ones here) export const availableLocales: { code: string; label: string }[] = [ { code: 'en', label: 'English' }, + { code: 'fr', label: 'Français' }, ]; export function setLocale(code: string) { From 2313a419892c79e8e2f318fb739173eda231c0c3 Mon Sep 17 00:00:00 2001 From: Yanis Date: Fri, 10 Apr 2026 16:33:07 +0200 Subject: [PATCH 2/2] Add {{levels}} interpolation --- src/i18n/fr/ui.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/fr/ui.json b/src/i18n/fr/ui.json index 1777759..33c1dc6 100644 --- a/src/i18n/fr/ui.json +++ b/src/i18n/fr/ui.json @@ -56,7 +56,7 @@ "help_meta": "Meta:", "landing_tagline": "Atteins l'éveil de/l'illumination git", - "landing_subtitle": "Apprends git en jouant. Une aventure sur navigateur avec un vrai terminal, {{max_level}} niveaux, et un chat qui juge.", + "landing_subtitle": "Apprends git en jouant. Une aventure sur navigateur avec un vrai terminal, {{levels}} niveaux, et un chat qui juge.", "landing_play": "JOUER MAINTENANT", "landing_continue": "CONTINUER", "landing_read_docs": "LIRE LA DOCUMENTATION"