i18n

package
v0.0.0-...-f1f97c7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(dir string) (map[string]*File, error)

Read read i18n files from a directory

Types

type File

type File struct {
	Lang string
	File string
	// contains filtered or unexported fields
}

File is file data from i18n file

func Empty

func Empty() *File

Empty return empty i18n object

func (*File) Tr

func (f *File) Tr(key string, defaults ...string) string

Tr transform i18n key to proper value

Jump to

Keyboard shortcuts

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