def get_languages(): c1 = tgformat.get_languages('en') c2 = tgformat.get_languages() if len(c1) > len(c2): d = dict(c1) d.update(dict(c2)) return d.items() else: return c2
def get_languages(): c1 = tgformat.get_languages("en") c2 = tgformat.get_languages() if len(c1) > len(c2): d = dict(c1) d.update(dict(c2)) return list(d.items()) else: return c2