lang

package
v4.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2017 License: AGPL-3.0, AGPL-3.0-or-later Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (err error)

Loads and parses the selected JSON language pack

Types

type Pack

type Pack struct {
	ID              string
	Tabs, SortModes []string
	Forms           map[string][2]string
	UI, Options     map[string]string
	Templates       map[string][]string
	Common          struct {
		Posts   map[string]string    `json:"posts"`
		Plurals map[string][2]string `json:"plurals"`
		Time    map[string][]string  `json:"time"`
		UI      map[string]string    `json:"ui"`
		Sync    []string             `json:"sync"`
	}
}

Pack contains a localization language pack for a single language

func Get

func Get() Pack

Returns the loaded language pack

Jump to

Keyboard shortcuts

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