i18n

package
v0.0.0-...-341d4b1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fprintf

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

Fprintf is like fmt.Fprintf, but using language-specific formatting.

func NewPrinter

func NewPrinter(lang ...string) *message.Printer

lang: BCP 47 - Tags for Identifying Languages http://tools.ietf.org/html/bcp47

func Printf

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

Printf is like fmt.Printf, but using language-specific formatting.

func SetDefaultPrinter

func SetDefaultPrinter(lang ...string)

func SetLangStrings

func SetLangStrings(dict map[string]map[string]string)

func SetMatcher

func SetMatcher(langs ...language.Tag)

func SetStrings

func SetStrings(lang string, kv map[string]string)

func Sprint

func Sprint(a ...interface{}) string

Sprint is like fmt.Sprint, but using language-specific formatting.

func Sprintf

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

Sprintf formats according to a format specifier and returns the resulting string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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