i18n

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 6 Imported by: 64

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 a 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