i18n

package
v1.65.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init inicializa o sistema de internacionalização. Ele detecta o idioma com a seguinte prioridade: 1. Variável de ambiente CHATCLI_LANG (pode ser definida no .env) 2. Variáveis de ambiente do sistema (LC_ALL, LANG) 3. Fallback para o idioma padrão (Inglês)

func T

func T(key string, args ...interface{}) string

T é a função principal para obter uma string traduzida. Ela usa o printer global para formatar a mensagem com a chave e os argumentos fornecidos. Se o sistema i18n não for inicializado, retorna a chave como fallback.

Types

This section is empty.

Jump to

Keyboard shortcuts

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