# Use Copilot to translate between languages

Category: GitHub Copilot

# Use Copilot to translate between languages

Ask Chat to convert a function from Python to TypeScript

Select a function in one language, open Chat, and type 'convert this to TypeScript'. Copilot handles idiomatic translation — not just syntax conversion — adapting Python's list comprehensions to JS array methods, for example.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.