It would also make sense to provide this function in init.py (close to SAMPLE_CONF), maybe with a more specific name like "format_default_translations_config"

But I preferred proposing as a more localized change first.