i18n

package
v0.0.0-...-db10d9a Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2015 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTranslationFunc

func GetTranslationFunc(r *http.Request) i18n.TranslateFunc

func InitI18n

func InitI18n(config I18nConfig)

Types

type DataWrappedTranslateFunc

type DataWrappedTranslateFunc func(translationID string, args ...interface{}) string

func GetDataWrappedTranslateFunc

func GetDataWrappedTranslateFunc(T i18n.TranslateFunc, data map[string]interface{}) DataWrappedTranslateFunc

type FutureTranslateFunc

type FutureTranslateFunc func(translationID string, args ...interface{}) FutureTranslation

type FutureTranslation

type FutureTranslation func() template.HTML

type I18nConfig

type I18nConfig struct {
	Asset           func(name string) ([]byte, error)
	AssetDir        func(name string) ([]string, error)
	DefaultLanguage string
	Languages       []string
}

type UnescapedTranslateFunc

type UnescapedTranslateFunc func(translationID string, args ...interface{}) template.HTML

Jump to

Keyboard shortcuts

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