Currently, I am working with Angular 5.x and utilizing the 'i18n' directive for translation purposes. While I have had success with translating in the .html file and template, I am struggling to find a solution for doing so in the typescript file. Is there a way to include the translation string in the typescript file?
As a side note, it appears that the built-in i18n functionality in Angular does not natively support translating strings in typescript, only in the template.