i18n

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 6 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