i18n

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyArgs []interface{}
	SEPARATOR = ":"
)

Functions

This section is empty.

Types

type DatabaseI18nMessageSource

type DatabaseI18nMessageSource interface {
	GetMessage(i18nKey string, args []interface{}, lang string) string
}

type I18nMessageTool

type I18nMessageTool struct {
	// contains filtered or unexported fields
}

func NewI18nMessageTool

func NewI18nMessageTool(filePathList []string) *I18nMessageTool

func (*I18nMessageTool) Translate

func (tool *I18nMessageTool) Translate(message string, args []interface{}, lang string) string

func (*I18nMessageTool) TranslateSimple

func (tool *I18nMessageTool) TranslateSimple(message string, language string) string

Jump to

Keyboard shortcuts

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