I'm trying to integrate formatters generated with globalize npm package into next.js based application. Formatters are stored in locale specific files. Idea is to import locale specific formatters dynamically based on current locale. Current locale information is available via next-i18next integration in getInitialProps method of the page but since formatters contain functions importing formatters in getInitialProps and passing them along with initial props doesn't work.
What would be any potential workaround to achieve desired behaviour?