]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/blob
c5306411826c32e45eb87b267fb9c5fc311d023d
[ceph-ci.git] /
1 import { I18n } from '@ngx-translate/i18n-polyfill';
2
3 import * as _ from 'lodash';
4
5 export class SelectBadgesMessages {
6   i18n: I18n;
7   empty: string;
8   selectionLimit: any;
9   customValidations = {};
10   filter: string;
11   add: string;
12
13   constructor(messages: {}, i18n: I18n) {
14     this.i18n = i18n;
15
16     this.empty = this.i18n('There are no items.');
17     this.selectionLimit = {
18       tooltip: this.i18n('Deselect item to select again'),
19       text: this.i18n('Selection limit reached')
20     };
21     this.filter = this.i18n('Filter tags');
22     this.add = this.i18n('Add badge'); // followed by " '{{filter.value}}'"
23
24     _.merge(this, messages);
25   }
26 }