diff --git a/src/core/trans/middleware.go b/src/core/trans/middleware.go index 687a5ee51cf19e2875ea9f19cad60e0b6dd2627f..d21befb1db944f61231d405ddcb128752cc6c296 100644 --- a/src/core/trans/middleware.go +++ b/src/core/trans/middleware.go @@ -6,8 +6,6 @@ import ( "net/http" ) -// TODO add tests - // Middleware is part of the trans package and sets the locale in the request context. // It requires a TranslatorProvider to be passed and uses it to choose the actual locale after checking the request. // The locale is extracted from the request's cookie. If no cookie is present or the cookie is empty, the default locale is used.