Think it would be better if you put this function in `i18n/__init__.py` and then import it here.