Help us shape the future of Go! Take the 2026 Go Developer Survey

i18n

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: EUPL-1.2 Imports: 2 Imported by: 0

Documentation

Overview

Package i18n fournit les chaînes FR/EN de la CLI, du mode headless et du prompt système.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SystemPrompt

func SystemPrompt(l Lang) string

SystemPrompt renvoie le prompt système dans la langue demandée (FR par défaut).

func T

func T(l Lang, key string, args ...any) string

T applique fmt.Sprintf au gabarit de la clé ; clé inconnue : "!" + key.

Types

type Lang

type Lang string

Lang est une langue d'interface.

const (
	FR Lang = "fr"
	EN Lang = "en"
)

func Parse

func Parse(s string) Lang

Parse renvoie FR pour toute valeur commençant par "fr" (ex. "fr_FR.UTF-8"), sinon EN, la langue par défaut.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL