Langslator is a lightweight and elegant Visual Studio Code extension that allows you to instantly translate selected text inside your editor into multiple languages — powered by Hugging Face and FastAPI backend.
✨ Features
✅ Translate any selected text in your editor.
✅ Supports multiple languages:
English (en)
French (fr)
Spanish (es)
German (de)
Italian (it)
Dutch (nl)
✅ Works directly inside VS Code — no external window required.
✅ Fast and free — uses the public Hugging Face Space backend (harshiddev/Text_Translator).
✅ Secure — no login, no API key needed.
✅ Replace selected text automatically with the translated version.
🚀 How to Use
Select any text in your VS Code editor.
Press Ctrl + Shift + P (or Cmd + Shift + P on macOS) or right cLick.
Type and choose Langslator : Translate Selected Expression
Choose your target language from the dropdown.
The translated text replaces your selection instantly.
💡 You’ll also see a quick summary of the translation as a notification.