Reading lang file embedded
oxodao opened this issue · comments
Hi,
I can't use this library because it reads the translations straight from a path.
My goal is to use pkger to embed them in the binary.
Is there any plan to do a LoadMessageFile function that could work with pkger or any other embedding library ?
Thanks!
You can use ParseMessageFileBytes
I create an example for someone reference. need golang >= 1.16
CarsonSlovoka@78d7b32#diff-ea44924dd86a9031c26b5740aa0077920e8336cde15d06d04a37c51ee6a57363R12-R47
Btw, you can now use LoadMessageFileFS