title: ngx-translate with angular material 2 MdSnackBar
body: <p>I'm new to TS and Angular 4. I need to be able to show a user a translated <code>CLOSE</code> word inside the angular material 2 <code>MdSnackBar</code>. I've understood that you can call the ngx-translate translation service from within the code like this:</p>
  
  <pre><code>this.translate.get('ERROR.CLOSE').subscribe((res: string) =&gt; {
       console.log(res);
  });
  </code></pre>
  
  <p>The thing is that I need to be able to show this inside an angular material 2 element called <code>MdSnackBar</code>.</p>
  
  <p>I wanted to execute it like this:</p>
  
  <pre><code>this.snackBar.open(error, this.getCloseWord(), {
       duration: 10000,
  })
  
  private getCloseWord() {
      this.translate.get('ERROR.CLOSE').subscribe((res: string) =&gt; {
        console.log(res);
      });
    }
  </code></pre>
  
  <p>But I don't know how to make the <code>getCloseWord()</code> method to return a correct string value out of an observable. </p>