Documentation ¶
Index ¶
Constants ¶
View Source
const RAW = "raw"
Variables ¶
View Source
var ( ErrNoProvider = errors.New("config: empty config-name or config-provider is nil") ErrUnknownProvider = errors.New("config: unknown config-provider %q") ErrProviderAlreadyExists = errors.New("config: config-provider %#v is already registered") )
Error messages.
Functions ¶
Types ¶
type BundleI ¶
type DateFormat ¶
func DateFormats ¶
func DateFormats() []DateFormat
type LocalizerI ¶
type LocalizerI interface { Translate(messageID string, template ...map[string]interface{}) (string, error) TranslatePlural(messageID string, pluralCount interface{}, template ...map[string]interface{}) (string, error) }
func NewLocalizer ¶
func NewLocalizer(lang ...string) (LocalizerI, error)
CreateLocalizer create localizer object to generate text messages.
Click to show internal directories.
Click to hide internal directories.