added locale cookie middleware