Closed jonasraoni closed 1 year ago
Yeah, it makes sense to me. PR is appreciated, thanks!
Great, I'll take a look at the code and .po
format, which is short and try to come up with something generic.
My objective is to also be able to use the package to validate/identify broken files, as I've flagged more types of invalid content in my review.
FYI, I've checked the .po
format and I think it's too superficial, it's missing a lot of small details 🤔
I'll address the things that I saw and come up with a proposal.
If I try to load a
.po
file with the following content:It works, but the defective line is ignored. It would be great if the package could log a warning or fail with an exception (this could be probably configurable with a "strict mode", disabled by default to keep the compatibility).
I'll take a look in the code, perhaps I can contribute with another PR if you think the idea is ok.