Closed ASHFAQPATWARI closed 1 month ago
@cossssmin Can you suggest a better approach for doing localization in Maizzle.
beforeCreate
runs only once, try dynamically importing the JSON in beforeRender
. I'll look into issue 2, thanks for letting me know 👍
Fixed the beforeCreate
issue with the config, will be available in next beta. Thanks!
I am trying to add i18next to the maizzle config. I have added a translations.json file and added it to server watch array. My code to add i18next looks like this
ISSUE 1 - However on changing the translations file, preview in browser is not refreshed not even on refresh. I need to start the server again to see the changes. ISSUE 2 - config in beforeCreate function is coming as undefined therefore we cant add anything to it