In today’s globalization, machine translation technology has become an indispensable bridge for cross-lingual communication. The integration of sentiment analysis makes machine translation not only able to convey information, but also able to accurately express and understand the emotional color of the original text, which is of great significance in the fields of cross-cultural communication, customer service, and social media interaction. This study overviews the development of machine translation technology, from early rule-based models to modern statistical models to Transformer-based neural network models, with a special focus on the integrated application of ChatGPT in sentiment analysis and machine translation. First, this study introduces the background and research significance of machine translation, and discusses the role of sentiment analysis in improving translation quality and user satisfaction. Subsequently, the historical development of machine translation technology is reviewed in detail, and the basic concepts and methodologies of sentiment analysis and its applications in different fields are elaborated. On this basis, this study analyzes in depth the technical architecture, language model and interaction capability of ChatGPT, as well as its specific application and performance in sentiment analysis. Further, this study explores the importance of sentiment analysis in machine translation, including sentiment recognition, translation strategies for sentiment expression, and the impact of sentiment analysis on improving translation quality and cultural adaptability. Meanwhile, the advantages and limitations of ChatGPT in sentiment analysis are assessed, and future research directions are proposed, including technology convergence, construction of datasets and evaluation criteria, and ethical and bias issues. Finally, this study summarizes the practical application value of sentiment analysis in machine translation and looks forward to the potential areas of future research, aiming to provide reference and inspiration for the further development of machine translation and sentiment analysis.