import { t } from '@/locale' ; export interface ICategory { name : string ; icon : string ; } export class Category implements ICategory { constructor ( public name , public icon ) { } get label ( ) { return t ( `categories.${ this . name }` ) ; } }