nit: line 19 would be (fractionally) quicker if this were `set(l.lower() for l in settings.SUMO_LANGUAGES)`.

This likely doesn't really matter.