The Angular i18n docs are clear about localizing an app, but it does not say anything about libraries.
ng add @angular/localize does not modify angular.json, and ng extract-i18n fails with the following errors :
Missing extract-i18n in angular.json
An unhandled exception occurred: No projects support the 'extract-i18n' target.
Adding extract-i18n target in angular.json
Data path "" should have required property 'browserTarget'.
How do I generate a messages.xlf file for my library ?