<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def level_i18n_name(self):
 """In use within templates for dynamic translations."""

        for level, name in spatial_granularities:
            if self.level == level:
                return name
        return self.level_name