alienfast / vite-plugin-i18next-loader

Vite plugin to client bundle i18next locales composited from one to many json/yaml files from one to many libraries. Zero config HMR support included.
Other
42 stars 4 forks source link

SSR server side rendering #21

Closed clayrisser closed 1 month ago

clayrisser commented 1 month ago

How to get this to work with server side rendering?

rosskevin commented 1 month ago

I've not used it with server side rendering, but I see no reason why it wouldn't work...it's just like any other library. It preprocesses locales at build time and makes them available as a javascript variable.

https://github.com/alienfast/vite-plugin-i18next-loader/blob/main/src/index.ts#L134