selectedOption.getAttribute('data-team-id');
        const newTeamName = /*[[${team.name}]]*/ 'Current Team';

        // If user is already in a team, show warning
        if (currentTeam && currentTeam.length > 0) {
          // Use internationalized message
          const warningTemplate = /*[[#{team.warning.moveUser}]]*/ 'Warning: This will move the user from "{0}" team to "{1}" team. Are you sure?';
          const formattedWarning = warningTemplate.replace('{0}', currentTeam).replace('{1}', newTeamNa