We are using the Angular 7 standard for internationalization (.xlf files). If we have text on html files with i18n attributes in tags, we can translate without issues. However, if we need to return different messages depending on some conditions (i.e.: validations) from code (.ts), we don't know how to translate that code.
Could you explain how to do that?