Documentation
¶
Index ¶
- func AcceptLanguageMiddlewareFunc(_ http.ResponseWriter, r *http.Request) *http.Request
- func FromLanguage(ctx context.Context) []language.Tag
- func HttpMiddleware(next http.Handler) http.Handler
- func ToLanguage(ctx context.Context, acceptLanguage string) context.Context
- func Translate(ctx context.Context, key string, args ...interface{}) string
- func TranslateValidationError(ctx context.Context, key string, params map[string]interface{}) string
- type TranslateLanguage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TranslateLanguage ¶
Click to show internal directories.
Click to hide internal directories.