Handling large translation files. Load only when building an option?
I have a 2.2mb translation file, per language.
I have quickly noticed using
next-i18next
loads the whole file, of every translation, on every pageload.
I am using getStaticProps with ISR, so I believed I would generate all the pages with the languages intergrated into it, then only send the required needed data for that page (it being pre-translated now).
Is there a solution to this? I've tried Google/ChatGPT but I don't know how to word it in a way that gets me to an answer.0 Replies