This problem involves creating a function to translate a sentence from one language to another. **Example:** Given a sentence 'Hello, how are you?' in English, the function should return the translation in Spanish, 'Hola, ¿cómo estás?'. **Constraints:** The input sentence will be a string, and the output should be a string. The function should be able to handle multiple languages and sentence structures.
Test Cases
Test Case 1
Input:
"Hello, how are you?", "Spanish"Expected:
"Hola, ¿cómo estás?"Test Case 2
Input:
"Hello, how are you?", "French"Expected:
"Bonjour, comment vas-tu?"+ 3 hidden test cases