alkasir: github.com/alkasir/alkasir/pkg/i18n Index | Files

package i18n

import "github.com/alkasir/alkasir/pkg/i18n"

Index

Package Files

i18n.go

func AddBundle Uses

func AddBundle(name string, data []byte) error

func Hasfunc Uses

func Hasfunc(bundle string) (func(key string) bool, error)

func Tfunc Uses

func Tfunc(bundle string) (func(key string) string, error)

type Bundle Uses

type Bundle struct {
    Name string
    // contains filtered or unexported fields
}

func (*Bundle) Has Uses

func (b *Bundle) Has(key string) bool

func (*Bundle) T Uses

func (b *Bundle) T(key string) string

type Item Uses

type Item struct {
    ID          string `json:"-"` // Translation key
    Message     string `json:"message"`
    Description string `json:"description"`
}

Package i18n imports 5 packages (graph) and is imported by 2 packages. Updated 2016-07-24. Refresh now. Tools for package owners.