Documentation ¶
Index ¶
- Variables
- type LocalizedString
- type Localizer
- func (l *Localizer) TextAccount(count int) *LocalizedString
- func (l *Localizer) TextAddOauth20Client(count int) *LocalizedString
- func (l *Localizer) TextClient(count int) *LocalizedString
- func (l *Localizer) TextClientID(count int) *LocalizedString
- func (l *Localizer) TextClientSecret(count int) *LocalizedString
- func (l *Localizer) TextCreate() *LocalizedString
- func (l *Localizer) TextDashboard(count int) *LocalizedString
- func (l *Localizer) TextDescription(count int) *LocalizedString
- func (l *Localizer) TextFediverse() *LocalizedString
- func (l *Localizer) TextHomeWeb() *LocalizedString
- func (l *Localizer) TextInstance(count int) *LocalizedString
- func (l *Localizer) TextInvalidURI(count int) *LocalizedString
- func (l *Localizer) TextLogin() *LocalizedString
- func (l *Localizer) TextLooksGood() *LocalizedString
- func (l *Localizer) TextOauth() *LocalizedString
- func (l *Localizer) TextOauth20Client(count int) *LocalizedString
- func (l *Localizer) TextOauth20Settings() *LocalizedString
- func (l *Localizer) TextRedirectURI(count int) *LocalizedString
- func (l *Localizer) TextRequired() *LocalizedString
- func (l *Localizer) TextUnauthorized() *LocalizedString
- type Module
Constants ¶
This section is empty.
Variables ¶
var DefaultLanguage = language.English
DefaultLanguage is the default language of the application.
var Locales embed.FS
Locales contains static files required by the application
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) TextAddOauth20Client ¶
func (l *Localizer) TextAddOauth20Client(count int) *LocalizedString
TextAddOauth20Client returns a translated phrase.
func (*Localizer) TextClient ¶
func (l *Localizer) TextClient(count int) *LocalizedString
TextClient returns a translated phrase.
func (*Localizer) TextClientID ¶ added in v0.5.0
func (l *Localizer) TextClientID(count int) *LocalizedString
TextClientID returns a translated phrase.
func (*Localizer) TextClientSecret ¶ added in v0.5.0
func (l *Localizer) TextClientSecret(count int) *LocalizedString
TextClientSecret returns a translated phrase.
func (*Localizer) TextCreate ¶
func (l *Localizer) TextCreate() *LocalizedString
TextCreate returns a translated phrase.
func (*Localizer) TextDashboard ¶
func (l *Localizer) TextDashboard(count int) *LocalizedString
TextDashboard returns a translated phrase.
func (*Localizer) TextDescription ¶
func (l *Localizer) TextDescription(count int) *LocalizedString
TextDescription returns a translated phrase.
func (*Localizer) TextFediverse ¶ added in v0.9.0
func (l *Localizer) TextFediverse() *LocalizedString
TextFediverse returns a translated phrase.
func (*Localizer) TextHomeWeb ¶ added in v0.7.0
func (l *Localizer) TextHomeWeb() *LocalizedString
TextHomeWeb returns a translated phrase.
func (*Localizer) TextInstance ¶ added in v0.9.0
func (l *Localizer) TextInstance(count int) *LocalizedString
TextInstance returns a translated phrase.
func (*Localizer) TextInvalidURI ¶ added in v0.6.1
func (l *Localizer) TextInvalidURI(count int) *LocalizedString
TextInvalidURI returns a translated phrase.
func (*Localizer) TextLogin ¶
func (l *Localizer) TextLogin() *LocalizedString
TextLogin returns a translated phrase.
func (*Localizer) TextLooksGood ¶ added in v0.6.0
func (l *Localizer) TextLooksGood() *LocalizedString
TextLooksGood returns a translated phrase.
func (*Localizer) TextOauth ¶
func (l *Localizer) TextOauth() *LocalizedString
TextOauth returns a translated phrase.
func (*Localizer) TextOauth20Client ¶
func (l *Localizer) TextOauth20Client(count int) *LocalizedString
TextOauth20Client returns a translated phrase.
func (*Localizer) TextOauth20Settings ¶
func (l *Localizer) TextOauth20Settings() *LocalizedString
TextOauth20Settings returns a translated phrase.
func (*Localizer) TextRedirectURI ¶ added in v0.6.2
func (l *Localizer) TextRedirectURI(count int) *LocalizedString
TextRedirectURI returns a translated phrase.
func (*Localizer) TextRequired ¶ added in v0.6.1
func (l *Localizer) TextRequired() *LocalizedString
TextRequired returns a translated phrase.
func (*Localizer) TextUnauthorized ¶
func (l *Localizer) TextUnauthorized() *LocalizedString
TextUnauthorized returns a translated phrase.