locales

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var I18n *i18n.I18n

I18n is the i18n constant.

Functions

func Middleware

func Middleware() gin.HandlerFunc

Middleware is an i18n middleware. Get client language from Accept-Language header.

func T

func T(key string, args ...interface{}) string

T returns the translation of the given key in the default language.

Types

This section is empty.

Jump to

Keyboard shortcuts

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