lukasgeiter / gettext-extractor

A flexible and powerful Gettext message extractor with support for JavaScript, TypeScript, JSX and HTML.
MIT License
98 stars 21 forks source link

Add message does not allow null values #48

Open floratmin opened 3 years ago

floratmin commented 3 years ago

The addMessage method on the Extractor class does not allow to add messages where some fields are null. But the definition of the IMessage interface allows null values for text, textPlural and context.

lukasgeiter commented 3 years ago

You're right, that's definitely not consistent. Until this is fixed you can use undefined instead of null.