It seems like this could be refactored into the `else:` block on line 76. No sense in assigning variables that won't get used.

```python
if not req_lang:
    return src.get(attr)
```

I could be wrong, but it seems like there's some pretty straightforward simplifications that could be made here. If there isn't a `req_lang`, you're calling `translation.get_language()`, but then it doesn't look like you're using `req_lang` anywhere in that case.