Angular 6 - How to extract translation from typescript
问题 I am using Angular 6 and I have setup handling of translations according to the documentation found here: https://angular.io/guide/i18n. The problem is that the documentation does not explain how to get translations using typescript. There is a similar question here: Can I use Angular i18n to translate string literals in typescript code But i cannot use that answer since it relies on ngx-translate which will be deprecated once Angular catches up, see https://github.com/ngx-translate/core