gettext-extractor icon indicating copy to clipboard operation
gettext-extractor copied to clipboard

Add message does not allow null values

Open floratmin opened this issue 3 years ago • 1 comments

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.

floratmin avatar Jun 23 '21 07:06 floratmin

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

lukasgeiter avatar Jul 21 '21 18:07 lukasgeiter