i18n

package
v0.0.0-...-ed3c113 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

README

mano/i18n License Build Status

Installation

$ go get -u -v github.com/junhwong/mano/i18n

Usage




Changelog

Details changes for each release are documented in the release notes.

Contribution

If you find a bug or want to contribute to the code or documentation, you can help by submitting an issue or a pull request.

License

Apache-2.0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	English = &Locale{}
	Chinese = &Locale{}
)

TODO:

Functions

This section is empty.

Types

type Bundle

type Bundle map[string]BundleEntry

func Load

func Load(dir string) (bundle Bundle, err error)

func (Bundle) Lang

func (b Bundle) Lang(local, name string, args ...interface{}) (lang string)

type BundleEntry

type BundleEntry map[string]string

type Locale

type Locale struct {
}

Locale 指定为每个区域,根据 RFC 4646 的唯一名称。 该名称是与语言相关的 ISO 639 两个字母小写区域性代码和与国家或地区相关 ISO 3166 双字母大写子区域性代码的组合。

Jump to

Keyboard shortcuts

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