better way replace query string, change locale