Skip to content

Commit 00250e5

Browse files
committed
fix: format lang.go
1 parent 9c53a8b commit 00250e5

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

internal/infrastructure/i18n/middleware.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ func GetLang(ctx context.Context) string {
3838
return DefaultLang
3939
}
4040

41-
// GetI18n extracts i18n service from context
42-
func GetI18n(ctx context.Context) *I18n {
43-
if i18n, ok := ctx.Value(i18nContextKey).(*I18n); ok {
44-
return i18n
45-
}
46-
return nil
47-
}
48-
4941
// GetTranslations extracts translations map from context
5042
func GetTranslations(ctx context.Context) map[string]string {
5143
if trans, ok := ctx.Value(transContextKey).(map[string]string); ok {

internal/presentation/handlers/lang.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"strings"
88

99
"github.com/btouchard/ackify-ce/internal/infrastructure/i18n"
10-
"github.com/go-chi/chi/v5"
1110
"github.com/btouchard/ackify-ce/pkg/logger"
11+
"github.com/go-chi/chi/v5"
1212
)
1313

1414
type LangHandlers struct {

0 commit comments

Comments
 (0)