automate set_locale

make more easier to use