Open Kubiskoi opened 6 years ago
Hi to all. I have 50 pug files in my src folder and two locale files: en.json and sk.json. For example en.json stores all strings for all pug files.
During compilation console output says
[12:37:34] Loading locale en [12:37:34] Reading translation data: locales/en.json [12:37:35] Loading locale en [12:37:35] Reading translation data: locales/en.json [12:37:36] Loading locale en [12:37:36] Reading translation data: locales/en.json . . . . . so it loads en.json for each .pug file.
Is there a way how to load en.json only once?
thank you
Hi @Kubiskoi at the moment there is no a way with the options to load only the file once. The gulp plugin should be modified in order to do that.
Hi to all. I have 50 pug files in my src folder and two locale files: en.json and sk.json. For example en.json stores all strings for all pug files.
During compilation console output says
[12:37:34] Loading locale en [12:37:34] Reading translation data: locales/en.json [12:37:35] Loading locale en [12:37:35] Reading translation data: locales/en.json [12:37:36] Loading locale en [12:37:36] Reading translation data: locales/en.json . . . . . so it loads en.json for each .pug file.
Is there a way how to load en.json only once?
thank you