i18n

package
v0.0.0-...-743c3d5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDate

func FormatDate(dateTime time.Time, locale string) string

FormatDate returns the provided formatted and localized date.

func FormatDateTime

func FormatDateTime(dateTime time.Time, locale string) string

FormatDateTime returns the provided formatted and localized date and time.

func GetLocalizedMessage

func GetLocalizedMessage(lang, messageID string, data ...interface{}) string

GetLocalizedMessage returns the message messageID in language lang

func ValidateLanguage

func ValidateLanguage(language string) string

ValidateLanguage returns the provided language, if supported. If the provided language is not supported, returns 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