import { valueConverter } from 'aurelia-framework';

@valueConverter('pluralise')
export class PluraliseValueConverter {
    toView(value: number, text: string): string {
        if (value > 1) {
            return `${text}s`;
        } else {
            return text;
        }
    }
}

import { valueConverter } from 'aurelia-framework';

@valueConverter('pluralise')
export class PluraliseValueConverter {
    toView(value: number, text: string): string {
        return value > 1 ? `${text}s` : text;
    }
}

Use ternary operator in PluraliseValueConverter
Use ternary operator in PluraliseValueConverter
