i18n

package
v1.24.6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(ctx context.Context, a ...interface{}) error

func Errorf

func Errorf(ctx context.Context, format string, a ...interface{}) error

func Fprintf

func Fprintf(ctx context.Context, w io.Writer, key message.Reference, a ...interface{}) (n int, err error)

func Printf

func Printf(ctx context.Context, format string, a ...interface{})

func SetLang

func SetLang(c *gin.Context)

func Sprintf

func Sprintf(ctx context.Context, format string, a ...interface{}) string

Types

type CtxLang

type CtxLang string
const LANG CtxLang = "lang"

Jump to

Keyboard shortcuts

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