Documentation ¶
Index ¶
- Variables
- type Locale
- func (v Locale) L_(str string) string
- func (v Locale) L_C(str, ctx string) string
- func (v Locale) L_D(dom, str string) string
- func (v Locale) L_DC(dom, str, ctx string) string
- func (v Locale) Lang() string
- func (v Locale) LocaleName() string
- func (v Locale) N_(str string) string
- func (v Locale) Q_(str, plural string, n int) string
- func (v Locale) Q_C(str, plural string, n int, ctx string) string
- func (v Locale) Q_D(dom, str, plural string, n int) string
- func (v Locale) Q_DC(dom, str, plural string, n int, ctx string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultLocaleRoot is the root dir of locales, usually is // "{Prefix}/share/locale". DefaultLocaleRoot = "/opt/go-i18n/share/locale" )
Functions ¶
This section is empty.
Types ¶
type Locale ¶
type Locale struct { // Embedding methods from gotext's Locale *gotext.Locale // contains filtered or unexported fields }
func (Locale) L_ ¶
* Mark i18n strings using the following wrapper: * * L_(), L_D(), L_C(), L_DC(), * Q_(), Q_D(), Q_C(), Q_DC(), * and N_().
func (Locale) LocaleName ¶
Click to show internal directories.
Click to hide internal directories.