Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading locales files multiple time #8

Open
Kubiskoi opened this issue Jun 7, 2018 · 1 comment
Open

loading locales files multiple time #8

Kubiskoi opened this issue Jun 7, 2018 · 1 comment
Assignees
Labels

Comments

@Kubiskoi
Copy link

Kubiskoi commented Jun 7, 2018

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

@felixzapata felixzapata self-assigned this Jun 7, 2018
@felixzapata
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants