File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff 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
5042func GetTranslations (ctx context.Context ) map [string ]string {
5143 if trans , ok := ctx .Value (transContextKey ).(map [string ]string ); ok {
Original file line number Diff line number Diff line change 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
1414type LangHandlers struct {
You can’t perform that action at this time.
0 commit comments