i18n

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: GPL-3.0 Imports: 7 Imported by: 10

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