How to change a site setting via the Console

Can we change the discourse language in bundle exec rails c console?
How can we change the language of our site to english?