Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Load func()
Load, when set, is called before every read so an app can lazily build its catalogs the first time they are needed.
View Source
var Prefixes = []string{"locale_"}
Functions ¶
func Get ¶
LocaleMeta reads a locale-describing entry ("locale_tag", "locale_flag", ...) from that language's own catalog, never from English, so a language that does not define one is not mistaken for English. "" when absent.
func Record ¶
Record keeps the locale-describing entries (locale_*) of one catalog file so they can be read back for that language alone, without the English fallback the message bundle applies.
func UsesCommaDecimal ¶
UsesCommaDecimal reports whether lang writes decimals with a comma, as its catalog declares (locale_comma_decimal).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.