we are using handlebar to render the view and now must use i18next lib to render the translated pages in our sailsjs backend but i could not find any example on how to integrate i18next in sailsjs and use it in my template.
i am aware that there is i18next-http-middleware
but i could not get my head around how to integrate it with sailsjs (very new to sailsjs) and official docs of i18next also does not have any example.
i was able to make it work with Built-in HTTP middleware configuration by adding a new middleware function in order array and initializing the
i18nextin the provided functions.