page takes language from browser, changing language sets proper language in Angular and in Rails and saves it in cookie