localize

package
v0.0.0-...-e7ebf20 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2014 License: BSD-2-Clause-Views Imports: 9 Imported by: 0

Documentation

Overview

en-US.go provides the localized messages for English in the United States

The localize package provides support for handling different languages and cultures

Index

Constants

This section is empty.

Variables

View Source
var En_US = `` /* 269-byte string literal not displayed */
View Source
var (
	// T is the translate function for the default locale
	T i18n.TranslateFunc
)

Functions

func Init

func Init(defaultLocale string) error

Init initializes the local environment

func LoadFiles

func LoadFiles(userLocale string, defaultLocal string) error

LoadFiles looks for i18n folders inside the current directory and the GOPATH to find translation files to load

func LoadJSON

func LoadJSON(userLocale string, translationDocument string) error

LoadJSON takes a json document of translations and manually loads them into the system

func NewTranslation

func NewTranslation(userLocale string, defaultLocale string) (t i18n.TranslateFunc, err error)

NewTranslation obtains a translation function object for the specified locales

Types

This section is empty.

Jump to

Keyboard shortcuts

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