Documentation
¶
Overview ¶
Package i18n is a platform module: translations of API responses and error messages, ported from taply. Requires postgres and api.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
DefaultLocale i18nx.Locale // language of the base columns and the fallback
Locales []i18nx.Locale // languages the API answers in
}
Config holds module settings. Load fills it from the environment; the platform generator writes the Load call into the project's config.gen.go.
Click to show internal directories.
Click to hide internal directories.