locales

package
v0.0.0-...-367c84d Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2016 License: ISC Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(locale string) bool

IsValid returns true if the given locale is a valid locale

func Supported

func Supported() map[string]Locale

Supported returns a map of supported Locales

Types

type Locale

type Locale struct {
	Code string

	AddressesFormats          []string
	AppNames                  []string
	AreaCodes                 []string
	BookTitles                []string
	BookGenres                []string
	BookPublishersFormats     []string
	BookPublishersSuffixes    []string
	BuildingNumbers           []string
	CityNamesFormats          []string
	CityPrefix                []string
	CitySuffix                []string
	CompanyNamesFormats       []string
	CompanySuffixes           []string
	CountryNames              []string
	ExchangeCodes             []string
	FirstNames                []string
	Gender                    []string
	LastName                  []string
	NamesFormats              []string
	PhoneNumbersFormats       []string
	ProductAdjectives         []string
	ProductNames              []string
	ProductNamesFormats       []string
	SecondaryAddressesFormats []string
	StateAbbr                 []string
	StateNames                []string
	StreetAddressesFormats    []string
	StreetNamesFormats        []string
	StreetSuffixes            []string
	StoreDepartments          []string
	Universities              []string
	ZipFormats                []string
}

Locale is a struct that hold the common names from each lang

Jump to

Keyboard shortcuts

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