locale

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const LangName = "lang"

Variables

This section is empty.

Functions

func CamelCase

func CamelCase(word string) string

Types

type Manager

type Manager interface {
	GetDefaultLang() string
	GetAllLang() []string
	GetMultipleLang() bool
	GetLang(*slog.Logger, *gin.Context) string
	CheckLang(*slog.Logger, string) string
	SetLangCookie(*slog.Logger, string, *gin.Context) string
}

func NewManager

func NewManager(logger *slog.Logger, globalConfig *config.GlobalServiceConfig) Manager

Jump to

Keyboard shortcuts

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