Toqan Translate is a custom Aura component, integrated with Salesforce, that allows users to automatically translate a case description (Case.Description) using the external Toqan AI service.
Key Features:
🔹 Automatic Description Retrieval: Upon initialization, the component automatically extracts the Description field of the case and pre-populates it in the editable text area.
🔹 Multi-Language Support: The user can select one of the supported languages: Romanian, English, Bulgarian, Hungarian.
🔹 AI-Assisted Translation: By integrating with the Toqan API, the text is sent to an AI model for translation.
🔹 Smart Polling: The component checks the translation status automatically every 3 seconds, for a maximum of 5 attempts.
🔹 User Feedback: If the translation fails after 5 attempts, the user is notified with a friendly error message.
🔹 Responsive UI: The lightning:textarea, lightning:select, and lightning:button components are styled according to Salesforce Lightning Design System (SLDS) standards, and the component is only displayed upon button action to maintain a clean interface.
Technologies & Tools Used:
Salesforce Aura Framework
Apex (REST callouts + testing)
Lightning Base Components (lightning:card, lightning:textarea, etc.)
Integration with external API (Toqan AI)
Unit testing with HttpCalloutMock
Benefits:
This component improves the efficiency of support agents by providing them with a fast, intuitive, and automatic tool for translating customer messages, without leaving the Salesforce platform.

