title: Access Angular2 translation from component or service
body: <p>I am currently in the process of translating my first Angular2 application based on the guidelines in <a href="https://angular.io/docs/ts/latest/cookbook/i18n.html" rel="noreferrer">https://angular.io/docs/ts/latest/cookbook/i18n.html</a></p>
  
  <p>The examples only always show how to apply the <code>i18n</code> attribute to template code and how the template's code is then internationalized.</p>
  
  <p>How would I access localized text from the component's code (the <code>.ts</code> file) or inside a service? I need this for interaction with some JavaScript libraries I am using, where I need to call a JavaScript function with the localized text.</p>