i18n

package
v0.0.0-...-20c7f3d Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(c context.Context) *i18n.Bundle

func ToContext

func ToContext(c Setter, worker *i18n.Bundle)

func Translate

func Translate(c context.Context, to, key string, templateData map[string]interface{}) string

Types

type Setter

type Setter interface {
	Set(string, interface{})
}

Jump to

Keyboard shortcuts

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