language

package
v0.0.0-...-eb23ef5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLanguage = language.English

DefaultLanguage is the default language of 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() *LocalizedString

TextAccount returns a translated phrase.

func (*Localizer) TextAccountNotfound

func (l *Localizer) TextAccountNotfound() *LocalizedString

TextAccountNotfound returns a translated phrase.

func (*Localizer) TextAccounts

func (l *Localizer) TextAccounts() *LocalizedString

TextAccounts returns a translated phrase.

func (*Localizer) TextActorURI

func (l *Localizer) TextActorURI() *LocalizedString

TextActorURI returns a translated phrase.

func (*Localizer) TextAdd

func (l *Localizer) TextAdd() *LocalizedString

TextAdd returns a translated phrase.

func (*Localizer) TextAddTeamMember

func (l *Localizer) TextAddTeamMember() *LocalizedString

TextAddTeamMember returns a translated phrase.

func (*Localizer) TextAdmin

func (l *Localizer) TextAdmin() *LocalizedString

TextAdmin returns a translated phrase.

func (*Localizer) TextAlreadyTeamMemberAccount

func (l *Localizer) TextAlreadyTeamMemberAccount(account string) *LocalizedString

TextAlreadyTeamMemberAccount returns a translated phrase.

func (*Localizer) TextCDN

func (l *Localizer) TextCDN() *LocalizedString

TextCDN returns a translated phrase.

func (*Localizer) TextCaprisage

func (l *Localizer) TextCaprisage() *LocalizedString

TextCaprisage returns a translated phrase.

func (*Localizer) TextClose

func (l *Localizer) TextClose() *LocalizedString

TextClose returns a translated phrase.

func (*Localizer) TextConfiguration

func (l *Localizer) TextConfiguration() *LocalizedString

TextConfiguration returns a translated phrase.

func (*Localizer) TextDelete

func (l *Localizer) TextDelete() *LocalizedString

TextDelete returns a translated phrase.

func (*Localizer) TextDeleteTeamMember

func (l *Localizer) TextDeleteTeamMember(account string) *LocalizedString

TextDeleteTeamMember returns a translated phrase.

func (*Localizer) TextDeleteTeamMemberConfirm

func (l *Localizer) TextDeleteTeamMemberConfirm(account, domain string) *LocalizedString

TextDeleteTeamMemberConfirm returns a translated phrase.

func (*Localizer) TextDisable

func (l *Localizer) TextDisable() *LocalizedString

TextDisable returns a translated phrase.

func (*Localizer) TextDisableS3CDN

func (l *Localizer) TextDisableS3CDN() *LocalizedString

TextDisableS3CDN returns a translated phrase.

func (*Localizer) TextDisableS3CDNConfirm

func (l *Localizer) TextDisableS3CDNConfirm(domain string) *LocalizedString

TextDisableS3CDNConfirm returns a translated phrase.

func (*Localizer) TextDisableS3CDNDomain

func (l *Localizer) TextDisableS3CDNDomain(domain string) *LocalizedString

TextDisableS3CDNDomain returns a translated phrase.

func (*Localizer) TextDomain

func (l *Localizer) TextDomain() *LocalizedString

TextDomain returns a translated phrase.

func (*Localizer) TextEnable

func (l *Localizer) TextEnable() *LocalizedString

TextEnable returns a translated phrase.

func (*Localizer) TextEnableS3CDN

func (l *Localizer) TextEnableS3CDN() *LocalizedString

TextEnableS3CDN returns a translated phrase.

func (*Localizer) TextEnableS3CDNConfirm

func (l *Localizer) TextEnableS3CDNConfirm(domain string) *LocalizedString

TextEnableS3CDNConfirm returns a translated phrase.

func (*Localizer) TextEnableS3CDNDomain

func (l *Localizer) TextEnableS3CDNDomain(domain string) *LocalizedString

TextEnableS3CDNDomain returns a translated phrase.

func (*Localizer) TextEnabled

func (l *Localizer) TextEnabled() *LocalizedString

TextEnabled returns a translated phrase.

func (*Localizer) TextErrorBadToken

func (l *Localizer) TextErrorBadToken() *LocalizedString

TextErrorBadToken returns a translated phrase.

func (*Localizer) TextErrorDatabase

func (l *Localizer) TextErrorDatabase() *LocalizedString

TextErrorDatabase returns a translated phrase.

func (*Localizer) TextFederation

func (l *Localizer) TextFederation() *LocalizedString

TextFederation returns a translated phrase.

func (*Localizer) TextGeneral

func (l *Localizer) TextGeneral() *LocalizedString

TextGeneral returns a translated phrase.

func (*Localizer) TextGroupMembership

func (l *Localizer) TextGroupMembership() *LocalizedString

TextGroupMembership returns a translated phrase.

func (*Localizer) TextHomeWeb

func (l *Localizer) TextHomeWeb() *LocalizedString

TextHomeWeb returns a translated phrase.

func (*Localizer) TextInboxURI

func (l *Localizer) TextInboxURI() *LocalizedString

TextInboxURI returns a translated phrase.

func (*Localizer) TextInstance

func (l *Localizer) TextInstance() *LocalizedString

TextInstance returns a translated phrase.

func (*Localizer) TextInstances

func (l *Localizer) TextInstances() *LocalizedString

TextInstances returns a translated phrase.

func (*Localizer) TextKeyCreatedAt

func (l *Localizer) TextKeyCreatedAt() *LocalizedString

TextKeyCreatedAt returns a translated phrase.

func (*Localizer) TextLogin

func (l *Localizer) TextLogin() *LocalizedString

TextLogin returns a translated phrase.

func (*Localizer) TextLogout

func (l *Localizer) TextLogout() *LocalizedString

TextLogout returns a translated phrase.

func (*Localizer) TextLooksGood

func (l *Localizer) TextLooksGood() *LocalizedString

TextLooksGood returns a translated phrase.

func (*Localizer) TextModerator

func (l *Localizer) TextModerator() *LocalizedString

TextModerator returns a translated phrase.

func (*Localizer) TextNotTeamMember

func (l *Localizer) TextNotTeamMember(account string) *LocalizedString

TextNotTeamMember returns a translated phrase.

func (*Localizer) TextOAuthConfigured

func (l *Localizer) TextOAuthConfigured() *LocalizedString

TextOAuthConfigured returns a translated phrase.

func (*Localizer) TextOwnerCannotDelete

func (l *Localizer) TextOwnerCannotDelete() *LocalizedString

TextOwnerCannotDelete returns a translated phrase.

func (*Localizer) TextOwnershipTransferred

func (l *Localizer) TextOwnershipTransferred() *LocalizedString

TextOwnershipTransferred returns a translated phrase.

func (*Localizer) TextRepo

func (l *Localizer) TextRepo() *LocalizedString

TextRepo returns a translated phrase.

func (*Localizer) TextS3CDNAlreadyEnabled

func (l *Localizer) TextS3CDNAlreadyEnabled() *LocalizedString

TextS3CDNAlreadyEnabled returns a translated phrase.

func (*Localizer) TextS3CDNDisabled

func (l *Localizer) TextS3CDNDisabled() *LocalizedString

TextS3CDNDisabled returns a translated phrase.

func (*Localizer) TextS3CDNEnabled

func (l *Localizer) TextS3CDNEnabled() *LocalizedString

TextS3CDNEnabled returns a translated phrase.

func (*Localizer) TextS3CDNNotEnabled

func (l *Localizer) TextS3CDNNotEnabled() *LocalizedString

TextS3CDNNotEnabled returns a translated phrase.

func (*Localizer) TextServerHostname

func (l *Localizer) TextServerHostname() *LocalizedString

TextServerHostname returns a translated phrase.

func (*Localizer) TextSettings

func (l *Localizer) TextSettings() *LocalizedString

TextSettings returns a translated phrase.

func (*Localizer) TextSoftware

func (l *Localizer) TextSoftware() *LocalizedString

TextSoftware returns a translated phrase.

func (*Localizer) TextTeam

func (l *Localizer) TextTeam() *LocalizedString

TextTeam returns a translated phrase.

func (*Localizer) TextTeamMemberAdded

func (l *Localizer) TextTeamMemberAdded(account string) *LocalizedString

TextTeamMemberAdded returns a translated phrase.

func (*Localizer) TextTeamMemberDeleted

func (l *Localizer) TextTeamMemberDeleted(account string) *LocalizedString

TextTeamMemberDeleted returns a translated phrase.

func (*Localizer) TextTeams

func (l *Localizer) TextTeams() *LocalizedString

TextTeams returns a translated phrase.

func (*Localizer) TextTransfer

func (l *Localizer) TextTransfer() *LocalizedString

TextTransfer returns a translated phrase.

func (*Localizer) TextTransferInstanceOwnershipConfirm

func (l *Localizer) TextTransferInstanceOwnershipConfirm(account, domain string) *LocalizedString

TextTransferInstanceOwnershipConfirm returns a translated phrase.

func (*Localizer) TextTransferOwnership

func (l *Localizer) TextTransferOwnership(account string) *LocalizedString

TextTransferOwnership returns a translated phrase.

func (*Localizer) TextUnauthorized

func (l *Localizer) TextUnauthorized() *LocalizedString

TextUnauthorized returns a translated phrase.

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module represent the language module for translating text.

func New

func New() (*Module, error)

New creates a new language module.

func (Module) Language

func (m Module) Language() language.Tag

Language returns the default language.

func (Module) NewLocalizer

func (m Module) NewLocalizer(langs ...string) (*Localizer, error)

NewLocalizer returns a localizer which will return translated phrases based on the provided languages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL