Skip to content

i18n capability

i18n adds internationalization to your Go service with message catalogs and locale middleware for multi-language support.

  • Message catalog system (YAML per locale)
  • Locale middleware (Accept-Language + query param)
  • Context-based locale propagation
  • Fallback to default locale

Use i18n when your service needs to serve users in multiple languages — API error messages, email content, or server-rendered UI copy. YAML catalogs per locale make translations easy to manage without recompiling.

Suggests: http-api, email-gateway

Terminal window
verikt new my-service --language go --cap i18n
# or add to an existing service:
verikt add i18n

email-gateway

Localized transactional emails using i18n message catalogs.

templ

Server-rendered templates with localized copy.

http-api

HTTP API where locale middleware runs.