How to refresh next-i18next content update automatically?

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • next-i18next

    The easiest way to translate your NextJs apps.

    When I started using next-i18next, I realized next dev server only loaded the translation files once when initialized and never updated even if I reloaded the page on my browser since server side doesn't change. Whenever I updated the translation, I needed to restart next dev server, which was bad developer experience.

  • Nodemon.io

    Monitor for any changes in your node.js application and automatically restart the server - perfect for development

    The option 1 is simple and nodemon can easily achieve the goal. However, this is not "Fast Refresh" and takes a while.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

  • next-remote-watch

    Decorated local server for next.js that enables reloads from remote data changes

    The option 2 seems better because next dev server keeps running, but too complicated to implement internal API. It can be done without API like next-remote-watch which monitors files and calls Next.js's internal method to reload the page. I tried it but it still requires implementation of content refresh by calling i18n.reloadResources() anyway. Also, page refresh is not "Fast Refresh" neither.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts