i18n

package
v0.0.0-...-47f63ad Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Localizer

type Localizer struct {
	Log *logrus.Entry
	S   TranslationSet
	// contains filtered or unexported fields
}

Localizer will translate a message into the user's language

type TranslationSet

type TranslationSet struct {
	AddFavourite string
	ErrorMessage string
}

TranslationSet is a set of localised strings for a given language

func NewTranslationSet

func NewTranslationSet(log *logrus.Entry) TranslationSet

NewTranslationSet creates a new Localizer

Jump to

Keyboard shortcuts

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