Skip to main content

Configuration

Default configuration keys for @quik/i18n. See Config Keys and Environment Variables for the full generated table.

  • i18n.default (default "en") is the language QI18n uses when no language is requested explicitly.
  • i18n.fallback (default "en") is the language QI18n falls back to when a key is missing in the requested language.
  • i18n.supported / i18n.preload (default de,en,es,fr,it,nl,pt,ro) list the languages QI18n accepts and preloads.
  • i18n.cookie (default "quik:lang") names the cookie used by setupHttpEngine()'s language detector to persist the resolved language.
  • i18n.debug enables i18next debug logging during setup().

Resolving translations

getI18n() (from @quik/core) returns the active IQI18n instance. If @quik/i18n has not been registered, it returns a no-op default implementation whose translate() returns the key unchanged — register @quik/i18n to get real translation, fallback, and interpolation behavior.