Next-i18next: hot reload

Created on 18 Jan 2019  路  4Comments  路  Source: isaachinman/next-i18next

Every time i change .json files i need fully restart server, have we there any way to solve this problem?

Most helpful comment

If still needed, I've developed i18next-hmr in-order to hot reload client & server when translations are changes... Check it out :]

All 4 comments

Sounds like a question for react-i18next, not next-i18next. There are ways of forcing a reload, but I don't think we'll do it here.

@isaachinman for hot reload need add code where i18n initing https://github.com/isaachinman/next-i18next/blob/9c96479e27297e300d04b62b17db3d3aa80ae4c4/src/create-i18next-client.js#L30
https://github.com/i18next/react-i18next/issues/6#issuecomment-185300536
we need add hotreload in your package, not react-i18next

You can feel free to submit a PR with i18next-resource-store-loader but it's not something I will be working on myself. Typically locale content is managed by non-devs, etc, and involves full deployments.

If still needed, I've developed i18next-hmr in-order to hot reload client & server when translations are changes... Check it out :]

Was this page helpful?
0 / 5 - 0 ratings