i18n

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LanguageZhCN = "zh-CN"
	LanguageEnUS = "en-US"
)

Variables

This section is empty.

Functions

func Translate

func Translate(lang string, key string, v ...interface{}) (string, error)

Types

type LangMap

type LangMap map[string]TextMapping

type TextMapping

type TextMapping map[string]string

Jump to

Keyboard shortcuts

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