lang

package
v0.0.0-...-1a9902f Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: AGPL-3.0, AGPL-3.0-or-later Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (err error)

Load loads and parses the selected JSON language pack

Types

type Pack

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

Pack contains a localization language pack for a single language

func Get

func Get() Pack

Get returns the loaded language pack

Jump to

Keyboard shortcuts

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