fix: format lang.go

This commit is contained in:
Benjamin
2025-10-01 00:38:18 +02:00
parent 9c53a8bf2b
commit 00250e5f0b
2 changed files with 1 additions and 9 deletions

View File

@@ -38,14 +38,6 @@ func GetLang(ctx context.Context) string {
return DefaultLang
}
// GetI18n extracts i18n service from context
func GetI18n(ctx context.Context) *I18n {
if i18n, ok := ctx.Value(i18nContextKey).(*I18n); ok {
return i18n
}
return nil
}
// GetTranslations extracts translations map from context
func GetTranslations(ctx context.Context) map[string]string {
if trans, ok := ctx.Value(transContextKey).(map[string]string); ok {

View File

@@ -7,8 +7,8 @@ import (
"strings"
"github.com/btouchard/ackify-ce/internal/infrastructure/i18n"
"github.com/go-chi/chi/v5"
"github.com/btouchard/ackify-ce/pkg/logger"
"github.com/go-chi/chi/v5"
)
type LangHandlers struct {