I am currently using Angular 5.x and using the directive 'i18n' for translation. I don't have any issue with .html file or the template but couldn't find the way to do this in the typescript file. Is there anyway to have the translation string in the typescript file?
Note:It seems like the Angular build-in i18n didn't support to translate the string in typescript only in the template.