String getCategoryNameById(String id){ for (var item in categories) if (item.id == id) return getTextByLocale(item.name, locale); return ""; }