i18n

package
v0.0.0-...-0c3ba03 Latest Latest
Warning

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

Go to latest
Published: May 26, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package i18n supports string translations with variable substitution and CLDR pluralization.

Index

Constants

This section is empty.

Variables

View Source
var ErrLocaleIncorrect = errors.New("Incorrect locale")

Functions

func Init

func Init(opts ...Option) error

Types

type I18n

type I18n struct {
	DefaultLocale string
	// contains filtered or unexported fields
}

func NewI18n

func NewI18n() *I18n

func (*I18n) Init

func (i *I18n) Init(opts ...Option) error

type Locale

type Locale struct {
	language.Tag
}

type Option

type Option func(*I18n)

Jump to

Keyboard shortcuts

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