The locale controls language, date formats, and character encoding for system services, and this sets the primary LANG to Spanish. New sessions inherit the change while running ones keep their old locale. The locale must exist in localectl list-locales or it will be rejected.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.