Documentation
¶
Overview ¶
Package i18n renders API-owned messages from the backend translation catalog.
Index ¶
- func FromContext(ctx context.Context) string
- func Locale(header string, additional ...string) string
- func Locales(key string) map[string]string
- func Message(locale, key string, args map[string]string) string
- func Resolve(locale, value string) string
- func Text(locale, key string) string
- func WithLocale(ctx context.Context, locale string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext returns the request locale, or English for background work.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.