generate js and load locales by i18n handler