Callback loadFile
1nv1 opened this issue · comments
Nelson commented
Hi,
I'm working in a project over love2d. I use i18n in this project, love2d is oriented to "sandboxes". I discovered multiple limitationes when run my project in windows. The sanboxes limit my file access, and I propose a change in the loadFile arguments adding a callback function. In this way I can pass to loadFile the specific love2d function to load file.
I create a commit 8c7bb80 in my fork of i18n.
Best regards.
Vurv commented
This is just sugar for
i18n.load( callback(file)() )
I see no reason why there should be an argument added to loadFile