i18n.lua icon indicating copy to clipboard operation
i18n.lua copied to clipboard

Callback loadFile

Open 1nv1 opened this issue 5 years ago • 1 comments

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.

1nv1 avatar Feb 24 '20 15:02 1nv1

This is just sugar for

i18n.load( callback(file)() )

I see no reason why there should be an argument added to loadFile

vurvdev avatar Aug 19 '23 15:08 vurvdev