locale

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustT

func MustT(msgID string, opts ...Option) string

func SetLang

func SetLang(lang ...string)

func T

func T(msgID string, opts ...Option) (string, error)

Types

type Option

type Option func(c *i18n.LocalizeConfig)

func WithDefault

func WithDefault(msg *i18n.Message) Option

func WithPluralCount

func WithPluralCount(pluralCount interface{}) Option

func WithTplData

func WithTplData(data interface{}) Option

Jump to

Keyboard shortcuts

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