fix js translate for pack mode