Add locale detection and passing from rails to ember