Optimize i18n integration for javascript files