package
0.0.0-20240817140251-aa2fb5bc486d
Repository: https://github.com/diamondburned/gotkit.git
Documentation: pkg.go.dev
# Functions
Current returns the current locale.
Get returns the translated string from the given reference.
GetFromDomain returns the translated string from the given reference and domain.
LoadCustomLocale loads the locale from the given filesystem.
LoadLocale loads the locale from the given filesystem.
RegisterLocaleDomain registers a locale domain.
Sprintf is an alias for Get.
Time formats the given timestamp as a locale-compatible timestamp.
TimeAgo formats a long string that expresses the relative time difference from now until t.
# Type aliases
Localized is a string that can be localized.