i18n

package
v0.0.0-...-43a0c9e Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package i18n includes internationalization related manipulations.

Index

Constants

This section is empty.

Variables

View Source
var Locales = map[string]locale{}

All locales.

Functions

func Get

func Get(locale, key string) interface{}

Get gets message with the specified locale and key.

func GetAll

func GetAll(locale string) map[string]interface{}

GetAll gets all messages with the specified locale.

func GetLocalesNames

func GetLocalesNames() []string

GetLocalesNames gets names of all locales. Returns ["zh_CN", "en_US"] for example.

func Load

func Load()

Load loads i18n message configurations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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