translation

package
v0.0.0-...-ca5afe3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultTranslation

func SetDefaultTranslation(language string) error

SetDefaultTranslation sets the default language to the provided one. Does nothing if it returns error != nil.

Types

type Translation

type Translation struct {
	Language              string
	CreatedBy             string
	Impressum             string
	PrivacyPolicy         string
	ParticipantLink       string
	Faster                string
	Break                 string
	Slower                string
	Question              string
	Good                  string
	NoConnection          string
	Activate              string
	DisplayText           string
	DisplayQuestion       string
	Submit                string
	Submitted             string
	Finish                string
	DisplayBlank          string
	DisplayFreeText       string
	FreeTextQuestion      string
	DisplayWordcloud      string
	DisplayRandomGroup    string
	DisplayMultipleChoice string
	DisplayNumber         string
	DisplayTimeQuestion   string
	UpdateAll5Seconds     string
	TabActiveContent      string
	TabElements           string
	TabSavedElements      string
	SaveElement           string
	DownloadButton        string
	ClearElements         string
	ReplaceElements       string
	ResponseSent          string
	Username              string
	Password              string
	Authenticate          string
	CopyToClipboard       string
	Title                 string
	Seperator             string
	CurrentlyConnected    string
	Minutes               string
	Precision             string
}

Translation represents an object holding all translations

func GetDefaultTranslation

func GetDefaultTranslation() Translation

GetDefaultTranslation returns a Translation struct of the current default language.

func GetTranslation

func GetTranslation(language string) (Translation, error)

GetTranslation returns a Translation struct of the given language. This function always loads translations from disk. Try to use GetDefaultTranslation where possible.

Jump to

Keyboard shortcuts

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