How can I change the locale?

I installed OpenWRT x86_64 in my barebone machine and is working well.
Now I need to know how to change the locale to spanish (from Spain) in order to use the console correctly from the barebone itself with my spanish keyboard.

In Debian I use to do it this way:

echo "es_ES.UTF-8 UTF-8" > /etc/locale.gen
locale-gen --purge es_ES.UTF-8
echo 'LANG="es_ES.UTF-8"' > /etc/default/locale
echo 'LANGUAGE="es_ES:es"' >> /etc/default/locale

But I can´t find a usefull way to do this in OpenWRT.

Any idea? Thanks.

You can't: OpenWrt is not meant to be used from the console as a workstation; your Spanish keyboard will work properly if you connect through SSH, but that is pretty much all.