i18n

package
v0.0.0-...-f1dd522 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllLangCodesStr = []string{"English", "中文", "繁體中文", "日本語", "Português", "한국어", "Русский", "Español"}
	AllCodes        = []LanguageCode{EN, ZH, ZHHant, JA, PtBr, Ko, Ru, Es}
)

Functions

func Initial

func Initial()

func T

func T(s string) string

Types

type LanguageCode

type LanguageCode string
const (
	ZH     LanguageCode = "zh"
	EN     LanguageCode = "en"
	JA     LanguageCode = "ja"
	ZHHant LanguageCode = "zh_Hant"
	PtBr   LanguageCode = "pt_BR"
	Ko     LanguageCode = "ko"
	Ru     LanguageCode = "ru"
	Es     LanguageCode = "es"
)

func NewLang

func NewLang(code string) LanguageCode

func (LanguageCode) String

func (l LanguageCode) String() string

func (LanguageCode) T

func (l LanguageCode) T(s string) string

Jump to

Keyboard shortcuts

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