]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/components/select/select-messages.model.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / components / select / select-messages.model.ts
index 94f8c997df1f3039a2dbfd7b5ea2aaeb9a9f9f78..7a28ffb5e8059131ec8f8a8c910b4dd32c864dc3 100644 (file)
@@ -1,10 +1,6 @@
-import { I18n } from '@ngx-translate/i18n-polyfill';
-
-import * as _ from 'lodash';
+import _ from 'lodash';
 
 export class SelectMessages {
-  i18n: I18n;
-
   empty: string;
   selectionLimit: any;
   customValidations = {};
@@ -12,17 +8,15 @@ export class SelectMessages {
   add: string;
   noOptions: string;
 
-  constructor(messages: {}, i18n: I18n) {
-    this.i18n = i18n;
-
-    this.empty = this.i18n('No items selected.');
+  constructor(messages: {}) {
+    this.empty = $localize`No items selected.`;
     this.selectionLimit = {
-      tooltip: this.i18n('Deselect item to select again'),
-      text: this.i18n('Selection limit reached')
+      tooltip: $localize`Deselect item to select again`,
+      text: $localize`Selection limit reached`
     };
-    this.filter = this.i18n('Filter tags');
-    this.add = this.i18n('Add badge'); // followed by " '{{filter.value}}'"
-    this.noOptions = this.i18n('There are no items available.');
+    this.filter = $localize`Filter tags`;
+    this.add = $localize`Add badge`; // followed by " '{{filter.value}}'"
+    this.noOptions = $localize`There are no items available.`;
 
     _.merge(this, messages);
   }