title: Translation Texts using ng2-translate
body: <p>I used <code>ng2-translate</code> to translate headings and texts in my <code>angular2</code> web app.
  But I am now confused when I trying to translate texts that pass from <code>.ts</code> file.<br>
  for example, I can translate texts in html file as following.</p>
  
  <pre><code>&lt;ion-row id="login-row"&gt;
        &lt;ion-col&gt;
          &lt;ion-list&gt;
            &lt;ion-item&gt;
              &lt;ion-label stacked&gt;{{ 'USERNAME' | translate }}&lt;/ion-label&gt;
              &lt;ion-input type="text" [(ngModel)]="username"&gt;&lt;/ion-input&gt;
            &lt;/ion-item&gt;
            &lt;ion-item&gt;
              &lt;ion-label stacked&gt;{{ 'PASSWORD' | translate }}&lt;/ion-label&gt;
              &lt;ion-input type="password" [(ngModel)]="password"&gt;&lt;/ion-input&gt;
            &lt;/ion-item&gt;
          &lt;/ion-list&gt;
        &lt;/ion-col&gt;
      &lt;/ion-row&gt;
  </code></pre>
  
  <p>But if I have <code>.ts</code> file text as following. Then How I can translate those texts.</p>
  
  <pre><code>    doCheckbox() {
      let alert = this.alertCtrl.create();
      alert.setTitle('Please Select a Location');
  
       alert.addInput({
         type: 'radio',
         label: 'Option 1',
         value: 'opt1',
         checked: true
       });
  
       alert.addInput({
         type: 'radio',
         label: 'Option 2',
         value: 'opt2'
       });
  
      alert.addButton({
        text: 'OK',
        handler: data =&gt; {
          this.testRadioOpen = false;
          this.testRadioResult = data;
        }
      });
      alert.present();
    }
  </code></pre>
  
  <p>in above example, I want to translate texts like </p>
  
  <blockquote>
    <p>'Please Select a Location', 'Option 1','Option 2', 'OK'...</p>
  </blockquote>
  
  <p>If anyone has an idea to overcome this problem, help me.
  Thanks.</p>