Fixed i18n setting

Also set locale into cookies
Merge pull request #64 from sergeyklay/next

Fixed i18n setting