Fixes where the language code was used instead of getting locale code

https://docs.djangoproject.com/en/dev/topics/i18n/#term-language-code