I was wondering how you go about telling i18n to reload the content from the resourcebundles.
My translations reside in a database. On app init I go to the database and update these resourcebundle files with the latest translations. When these files don’t exist yet, they are created. Up until here everything is still fine. But It seems i18n is already initialized before I write these new resourcebundles, so when the page finally loads, every piece of text is unknown translation. Only when I fwreinit a second time, the new resource bundles get picked up.
I tried playing around with the init function of i18n, but it seems I’m getting nowhere.
Anybody else have an idea?