Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultLanguage = English
DefaultLanguage is the fallback language
View Source
const DefaultTheme = ThemeAuto
DefaultTheme is the fallback theme
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Language ¶
type Language string
Language represents a supported language
func DetectLanguage ¶
DetectLanguage detects the preferred language from HTTP request
type Theme ¶
type Theme string
Theme represents a UI theme
func DetectTheme ¶
DetectTheme detects the preferred theme from HTTP request
type Translations ¶
type Translations map[Language]Translation
Translations holds all language translations
type Translator ¶
type Translator struct {
// contains filtered or unexported fields
}
Translator provides translation functionality
Click to show internal directories.
Click to hide internal directories.