locales

package
v0.0.0-...-9b31fef Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2016 License: GPL-2.0 Imports: 0 Imported by: 1

README

locales

Package that provides GP locales definition. Based on https://github.com/GlotPress/gp-locales/.

How to build the library

gplocales.go is auto generated from go generate. See mkgplocales.go how it generates the locales.

Documentation

Overview

Package locales provides list of GP locales based on https://github.com/GlotPress/gp-locales

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocaleProp

func GetLocaleProp(locale string, prop string) string

Types

type Locale

type Locale struct {
	EnglishName     string `json:"english_name"`
	NativeName      string `json:"native_name"`
	LangCodeISO6391 string `json:"lang_code_iso_639_1"`
	LangCodeISO6392 string `json:"lang_code_iso_639_2"`
	LangCodeISO6393 string `json:"lang_code_iso_639_3"`
	WPLocale        string `json:"wp_locale"`
}

Jump to

Keyboard shortcuts

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