handler property
Implementation
@override
MiddlewareHandler get handler =>
(Request req, ResponseContract res, NextFunction next) async {
try {
final lang = req.headers.get('accept-language');
if (lang == null) return await next();
Lang.setRequestLocale(lang);
await next();
} catch (e) {
await next();
}
};