NIT: This should be indented to line up with the other line inside the paren. Like so:

```python
lang = next(locale for locale in settings.FACEBOOK_LIKE_LOCALES
            if locale.startswith(lang_prefix))
```