localized-strings icon indicating copy to clipboard operation
localized-strings copied to clipboard

Module Bundling issue using `roll-up`

Open ironydips opened this issue 5 years ago • 1 comments

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.

ironydips avatar Jun 13 '19 11:06 ironydips

Any update on this one pls?

ironydips avatar Jun 18 '19 10:06 ironydips