def format_timedelta(datetime_or_timedelta, granularity='second', threshold=0.85):
 return get_i18n().format_timedelta(datetime_or_timedelta, granularity, threshold)

def format_timedelta ( datetime_or_timedelta , granularity = 'second' , threshold = 0.85 ) : return get_i18n ( ) . format_timedelta ( datetime_or_timedelta , granularity , threshold )
wrapper around babels format_timedelta to make it user language aware .