lang

package
v1.16.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: GPL-2.0, GPL-2.0-or-later Imports: 1 Imported by: 4

Documentation

Overview

Package lang provides text in alternative languages.

The language precedence is the value of the "LANG" environment variable followed by a configurable default; then the goes default, en_US.UTF-8.

Use this build ldflag to configure the default,

-X github.com/platinasystems/goes/lang.Default=fr_FR.UTF-8

Or re-initialize the default with a build tag as shown in french.go

go test -tags french -v

Index

Constants

View Source
const (
	AaDJ  = "aa_DJ.UTF-8"
	AfZA  = "af_ZA.UTF-8"
	AnES  = "an_ES.UTF-8"
	ArAE  = "ar_AE.UTF-8"
	ArBH  = "ar_BH.UTF-8"
	ArDZ  = "ar_DZ.UTF-8"
	ArEG  = "ar_EG.UTF-8"
	ArIQ  = "ar_IQ.UTF-8"
	ArJO  = "ar_JO.UTF-8"
	ArKW  = "ar_KW.UTF-8"
	ArLB  = "ar_LB.UTF-8"
	ArLY  = "ar_LY.UTF-8"
	ArMA  = "ar_MA.UTF-8"
	ArOM  = "ar_OM.UTF-8"
	ArQA  = "ar_QA.UTF-8"
	ArSA  = "ar_SA.UTF-8"
	ArSD  = "ar_SD.UTF-8"
	ArSY  = "ar_SY.UTF-8"
	ArTN  = "ar_TN.UTF-8"
	ArYE  = "ar_YE.UTF-8"
	AstES = "ast_ES.UTF-8"
	BeBY  = "be_BY.UTF-8"
	BgBG  = "bg_BG.UTF-8"
	BrFR  = "br_FR.UTF-8"
	BsBA  = "bs_BA.UTF-8"
	CaAD  = "ca_AD.UTF-8"
	CaES  = "ca_ES.UTF-8"
	CaFR  = "ca_FR.UTF-8"
	CaIT  = "ca_IT.UTF-8"
	CsCZ  = "cs_CZ.UTF-8"
	CyGB  = "cy_GB.UTF-8"
	DaDK  = "da_DK.UTF-8"
	DeAT  = "de_AT.UTF-8"
	DeBE  = "de_BE.UTF-8"
	DeCH  = "de_CH.UTF-8"
	DeDE  = "de_DE.UTF-8"
	DeLI  = "de_LI.UTF-8"
	DeLU  = "de_LU.UTF-8"
	ElCY  = "el_CY.UTF-8"
	ElGR  = "el_GR.UTF-8"
	EnAU  = "en_AU.UTF-8"
	EnBW  = "en_BW.UTF-8"
	EnCA  = "en_CA.UTF-8"
	EnDK  = "en_DK.UTF-8"
	EnGB  = "en_GB.UTF-8"
	EnHK  = "en_HK.UTF-8"
	EnIE  = "en_IE.UTF-8"
	EnNZ  = "en_NZ.UTF-8"
	EnPH  = "en_PH.UTF-8"
	EnSG  = "en_SG.UTF-8"
	EnUS  = "en_US.UTF-8"
	EnZA  = "en_ZA.UTF-8"
	EnZW  = "en_ZW.UTF-8"
	EsAR  = "es_AR.UTF-8"
	EsBO  = "es_BO.UTF-8"
	EsCL  = "es_CL.UTF-8"
	EsCO  = "es_CO.UTF-8"
	EsCR  = "es_CR.UTF-8"
	EsDO  = "es_DO.UTF-8"
	EsEC  = "es_EC.UTF-8"
	EsES  = "es_ES.UTF-8"
	EsGT  = "es_GT.UTF-8"
	EsHN  = "es_HN.UTF-8"
	EsMX  = "es_MX.UTF-8"
	EsNI  = "es_NI.UTF-8"
	EsPA  = "es_PA.UTF-8"
	EsPE  = "es_PE.UTF-8"
	EsPR  = "es_PR.UTF-8"
	EsPY  = "es_PY.UTF-8"
	EsSV  = "es_SV.UTF-8"
	EsUS  = "es_US.UTF-8"
	EsUY  = "es_UY.UTF-8"
	EsVE  = "es_VE.UTF-8"
	EtEE  = "et_EE.UTF-8"
	EuES  = "eu_ES.UTF-8"
	EuFR  = "eu_FR.UTF-8"
	FiFI  = "fi_FI.UTF-8"
	FoFO  = "fo_FO.UTF-8"
	FrBE  = "fr_BE.UTF-8"
	FrCA  = "fr_CA.UTF-8"
	FrCH  = "fr_CH.UTF-8"
	FrFR  = "fr_FR.UTF-8"
	FrLU  = "fr_LU.UTF-8"
	GaIE  = "ga_IE.UTF-8"
	GdGB  = "gd_GB.UTF-8"
	GlES  = "gl_ES.UTF-8"
	GvGB  = "gv_GB.UTF-8"
	HeIL  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R  = "tr_TR.UTF-8"
	UkUA  = "uk_UA.UTF-8"
	UzUZ  = "uz_UZ.UTF-8"
	WaBE  = "wa_BE.UTF-8"
	XhZA  = "xh_ZA.UTF-8"
	YiUS  = "yi_US.UTF-8"
	ZhCN  = "zh_CN.UTF-8"
	ZhHK  = "zh_HK.UTF-8"
	ZhSG  = "zh_SG.UTF-8"
	ZhTW  = "zh_TW.UTF-8"
	ZuZA  = "zu_ZA.UTF-8"
)

Variables

View Source
var (
	Default = EnUS

	Lang string
)

Functions

This section is empty.

Types

type Alt

type Alt map[string]string

func (Alt) String

func (m Alt) String() string

If available, this returns text in the prefered language.

Jump to

Keyboard shortcuts

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