title: How to translate enums at angular 6
body: <p>I am trying to translate the enums at the Angular but the problem it is that I don't know how to translate them.
  I can read them, I can show in a dropdown but not to translate.</p>
  
  <p>Below is my code</p>
  
  <pre><code>export enum test {
   test1 = '1 - do something',
   test2 = '2 - do anything',
  }
  </code></pre>
  
  <p>I read the data something like this</p>
  
  <pre><code>public getEnum: any = {};
  
  public ngOnInit(): void {
  Object.values(test).map(a: string) =&gt; {
  
  const id = a.substr(0, 5);
  this.getEnum[id] = a;
  }
  </code></pre>
  
  <p>And in the html I have something like this</p>
  
  <pre><code> [options]="getEnum"
  </code></pre>
  
  <p>The translate is something like this.</p>
  
  <pre><code>"dropdown": {
    "doSomething": {
      "test1": "1 - do something"
     }
  }
  </code></pre>