i18n

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package i18n includes internationalization related manipulations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalesNames

func GetLocalesNames() []string

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

func GetMessage

func GetMessage(locale, key string) string

GetMessage gets a message with the specified locale and key.

func GetMessagef

func GetMessagef(locale, key string, a ...interface{}) string

GetMessagef gets a message with the specified locale, key and arguments

func GetMessages

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

GetMessages gets all messages with the specified locale.

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