Refactor js and add translations in user bundle