i18n

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package i18n provides multilingual translations (zh/en/zh_TW/ja/ko) for CLI output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type I18n

type I18n struct {
	Lang string
}

I18n provides multilingual translations.

func New

func New(lang string) *I18n

New creates an I18n instance for the given language.

func (*I18n) T

func (i *I18n) T(key string, args ...any) string

T returns the translated string for key, optionally formatting args.

Jump to

Keyboard shortcuts

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