i18n.lua
i18n.lua copied to clipboard
Callback loadFile
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 8c7bb80c061f4b6ddffefa639f799ed565078fcb in my fork of i18n. Best regards.
This is just sugar for
i18n.load( callback(file)() )
I see no reason why there should be an argument added to loadFile