Versions in this module Expand all Collapse all v1 v1.0.0 Jan 4, 2024 Changes in this version + const LocaleCode + func IsLocalizable(obj interface{}) (isLocalizable bool) + func IsLocalizableFromCtx(ctx context.Context) (localeCode string, isLocalizable bool) + type Builder struct + func New() *Builder + func (b *Builder) EnsureLocale(in http.Handler) (out http.Handler) + func (b *Builder) GetAllLocalePaths() []string + func (b *Builder) GetCookieName() string + func (b *Builder) GetCorrectLocaleCode(r *http.Request) string + func (b *Builder) GetCurrentLocaleCodeFromCookie(r *http.Request) (localeCode string) + func (b *Builder) GetLocaleLabel(localeCode string) string + func (b *Builder) GetLocalePath(localeCode string) string + func (b *Builder) GetQueryName() string + func (b *Builder) GetSupportLocaleCodes() []string + func (b *Builder) GetSupportLocaleCodesFromRequest(R *http.Request) []string + func (b *Builder) GetSupportLocaleCodesFromRequestFunc(v func(R *http.Request) []string) (r *Builder) + func (b *Builder) IsTurnedOn() bool + func (b *Builder) RegisterLocales(localeCode, localePath, localeLabel string) (r *Builder) + type L10nInterface interface + GetLocale func() string + SetLocale func(locale string) + type L10nONInterface interface + L10nON func() + type Locale struct + LocaleCode string + func (l *Locale) SetLocale(locale string) + func (l Locale) GetLocale() string Other modules containing this package github.com/qor5/admin/v3