Documentation ¶
Index ¶
- type LocalizedString
- type Localizer
- func (l *Localizer) TextAccount(count int) *LocalizedString
- func (l *Localizer) TextDashboard() *LocalizedString
- func (l *Localizer) TextEmail() *LocalizedString
- func (l *Localizer) TextHelloWorld() *LocalizedString
- func (l *Localizer) TextHomeShort() *LocalizedString
- func (l *Localizer) TextLogin() *LocalizedString
- func (l *Localizer) TextLoginInvalid() *LocalizedString
- func (l *Localizer) TextLoginShort() *LocalizedString
- func (l *Localizer) TextPassword() *LocalizedString
- func (l *Localizer) TextService(count int) *LocalizedString
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalizedString ¶
type LocalizedString struct {
// contains filtered or unexported fields
}
LocalizedString contains a localized string
func (*LocalizedString) Language ¶
func (l *LocalizedString) Language() language.Tag
Language returns the language of the localized string
func (*LocalizedString) String ¶
func (l *LocalizedString) String() string
String returns the localized string
type Localizer ¶
type Localizer struct {
// contains filtered or unexported fields
}
Localizer returns translated phrases
func (*Localizer) TextAccount ¶
func (l *Localizer) TextAccount(count int) *LocalizedString
TextAccount returns a translated phrase.
func (*Localizer) TextDashboard ¶
func (l *Localizer) TextDashboard() *LocalizedString
TextDashboard returns a translated phrase.
func (*Localizer) TextEmail ¶
func (l *Localizer) TextEmail() *LocalizedString
TextEmail returns a translated phrase.
func (*Localizer) TextHelloWorld ¶
func (l *Localizer) TextHelloWorld() *LocalizedString
TextHelloWorld returns a translated phrase.
func (*Localizer) TextHomeShort ¶
func (l *Localizer) TextHomeShort() *LocalizedString
TextHomeShort returns a translated phrase.
func (*Localizer) TextLogin ¶
func (l *Localizer) TextLogin() *LocalizedString
TextLogin returns a translated phrase.
func (*Localizer) TextLoginInvalid ¶
func (l *Localizer) TextLoginInvalid() *LocalizedString
TextLoginInvalid returns a translated phrase.
func (*Localizer) TextLoginShort ¶
func (l *Localizer) TextLoginShort() *LocalizedString
TextLoginShort returns a translated phrase.
func (*Localizer) TextPassword ¶
func (l *Localizer) TextPassword() *LocalizedString
TextPassword returns a translated phrase.
func (*Localizer) TextService ¶
func (l *Localizer) TextService(count int) *LocalizedString
TextService returns a translated phrase.
Click to show internal directories.
Click to hide internal directories.