Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultLang = "en"
Variables ¶
This section is empty.
Functions ¶
func RegisterTranslations ¶
Types ¶
type TranslationsData ¶ added in v0.6.0
type TranslationsData map[string]TranslationsT
func Translations ¶ added in v0.6.0
func Translations() TranslationsData
func (TranslationsData) Language ¶ added in v0.6.0
func (t TranslationsData) Language(lang string) TranslationsT
func (TranslationsData) WithCtx ¶ added in v0.6.0
func (t TranslationsData) WithCtx(c *fiber.Ctx) TranslationsT
type TranslationsT ¶ added in v0.6.0
func WithCtx ¶ added in v0.6.0
func WithCtx(c *fiber.Ctx) TranslationsT
func (TranslationsT) T ¶ added in v0.6.0
func (t TranslationsT) T(msg string) string
func (TranslationsT) Translate ¶ added in v0.6.0
func (t TranslationsT) Translate(msg string) string
Click to show internal directories.
Click to hide internal directories.