gettext

package
v0.0.0-...-18b278e Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Languages = []string{"en", "ja"}

Functions

func Get

func Get(s string, args ...interface{}) string

func SetDomain

func SetDomain(name string)

func SetLocale

func SetLocale(name string)

Types

type Gettext

type Gettext struct {
	Locales map[string]*gotext.Locale
	// contains filtered or unexported fields
}

func Default

func Default() *Gettext

func New

func New(path string) *Gettext

func (*Gettext) AddDomain

func (v *Gettext) AddDomain(domain string)

func (*Gettext) AddLocale

func (v *Gettext) AddLocale(name string, l *gotext.Locale)

func (*Gettext) Get

func (v *Gettext) Get(locale, domain, s string, args ...interface{}) string

Jump to

Keyboard shortcuts

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