web-ridge/react-ridge-translations

Support code splitting translations

Opened this issue · 0 comments

We could create a function:

createSharedOptions({ language: 'nl' })

And add support for simple translate objects without groups to put in

Screen/translate.ts
Screen2/translate.ts

This way code splitting would possible if translations are only used in the lazy loaded screens. Language would still change real time because of the sharedOptions object!