localized-strings
localized-strings copied to clipboard
Module Bundling issue using `roll-up`
While working on a frontend project in mithril
library we were using wright
for hot-reload and roll-up
for module bundling, we were facing issues where localize-strings
was not working with roll-up
(we believed) as while hot-reloading, bundle was not getting prepared via roll-up
. On investigation, we found that it might be because 1 fileLocalizeStrings.js
was using require
to load another file utils.js
for 4 functions namely -
getInterfaceLanguage , getBestMatchingLanguage , validateTranslationKeys , randomPseudo
So, for workaround I had kept those 4 functions inside LocalizeStrings.js
file and no require
is happening now. This fixed our problem but since this is not permanent fix as this will not enable us to take any future updates without manual work. So can you pls address this issue or let us know if any other solid work around exists for this.
Any update on this one pls?