Documentation ¶
Index ¶
- Variables
- func Add(text string) string
- func Addf(text string, format ...interface{}) string
- func IsLangSupported(s string) bool
- func Languages() (ss []string)
- func Load(moduleToLoad string)
- func LoadAll(defLang string)
- func LoadLangAll(lang string)
- func LoadLangModule(lang string, moduleName string)
- func Trnl(lang string, trnlVal string) string
- func Trnlf(lang string, trnlVal string, dataMap map[string]string) string
- type Locer
- type Translation
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLang = "en-GB"
View Source
var Logger *zap.SugaredLogger
Functions ¶
func IsLangSupported ¶
func LoadLangAll ¶
func LoadLangAll(lang string)
func LoadLangModule ¶
Types ¶
type Locer ¶
type Translation ¶
Click to show internal directories.
Click to hide internal directories.