package
0.14.2
Repository: https://github.com/go-corelibs/x-text.git
Documentation: pkg.go.dev

# Packages

Package catalog defines collections of translated format strings.
Package pipeline provides tools for creating translation pipelines.

# Functions

Catalog defines the catalog to be used.
GetLanguageTag returns the language.Tag assigned to the given request with a prior call to SetTag GetLanguageTag was added by Go-Enjin.
GetPrinter looks for a Printer instance associated with the given http.Request and if not present, constructs a NewPrinter instance using the SetTag, SetDefaultTag or language.Und GetPrinter was added by Go-Enjin.
GetTag retrieves the language.Tag assigned to the given request.
Key creates a message Reference for a message where the given id is used for message lookup and the fallback is returned when no matches are found.
MatchLanguage reports the matched tag obtained from language.MatchStrings for the Matcher of the DefaultCatalog.
NewCatalogPrinter constructs a NewPrinter with the specific catalog.Catalog and the parsed `lang` code.
NewPrinter returns a Printer that formats messages tailored to language t.
Set calls Set on the initial default Catalog.
SetDefaultTag associates a private context key with the language.Tag given SetDefaultTag was added by Go-Enjin.
SetPrinter associates a private context key with the given Printer instance SetPrinter was added by Go-Enjin.
SetString calls SetString on the initial default Catalog.
SetTag associates a private context key with the language.Tag given SetTag was added by Go-Enjin.

# Variables

DefaultCatalog is used by SetString.

# Structs

A Printer implements language-specific formatted I/O analogous to the fmt package.

# Interfaces

A Reference is a string or a message reference.

# Type aliases

An Option defines an option of a Printer.