i18nize

package module
v0.0.0-...-55eaf5a Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2014 License: MIT Imports: 2 Imported by: 0

README

i18nize Build Status GoDoc

i18nize is a no-frills golang library to format dates for different locales.

Features
  • No external dependencies
  • No external files needed (rules/messages) at runtime
  • No Short documentation
  • Only formats time.Time values, does not translate messages
License

MIT/X11.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTime

func FormatTime(t time.Time, lang string, layout string) string

Formats the time instant t for language lang using layout. This function is the i18nized equivalent to time's time.Format.

func LayoutTime

func LayoutTime(t time.Time, lang string, layout string) string

Formats the time instant t for language lang using layout, while changing language dependent characteristics of the layout where applicable.

func MonthName

func MonthName(month time.Month, locale string) string

func ShortMonthName

func ShortMonthName(month time.Month, locale string) string

func ShortWeekdayName

func ShortWeekdayName(day time.Weekday, locale string) string

func WeekdayName

func WeekdayName(day time.Weekday, locale string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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