"""Added for translate to Japanese, Chinese and Korean numbers correctly.""" def translate_day(day, _): """Check day and return back translated one. Args: day (str): Day that should be translated _ : function that translates Returns: (str): translated day """ days = { '01': _('1'), '02': _('2'), '03': _('3'), '04': _('4'), '05': _('5'), '06': _('6'), '07': _('7'), '08': _('8'), '09': _('9'), '10': _('10'), '11': _('11'), '12': _('12'), '13': _('13'), '14': _('14'), '15': _('15'), '16': _('16'), '17': _('17'), '18': _('18'), '19': _('19'), '20': _('20'), '21': _('21'), '22': _('22'), '23': _('23'), '24': _('24'), '25': _('25'), '26': _('26'), '27': _('27'), '28': _('28'), '29': _('29'), '30': _('30'), '31': _('31') } return days[day]