micro-translate-plugin

An easy-to-use and helpful plugin for the micro editor that allows you to quickly translate selected text without leaving the editor.

language: Lua

release date: 2026-04-03

view on GitHub

about

translation
The micro-translate-plugin plugin is an easy-to-use translator designed for the micro text editor.

The plugin requires a small number of dependencies - only access to the curl command, which allows it to send and receive data from the translator's endpoint.

features

The plugin can quickly translate the entire current line or selected text. Translation speed depends on the quality of your internet connection – the script uses the public Google Translator endpoint.

The command accepts the following parameters:
  • -t [LANG] : target language, required
  • -s [LANG] : source language, default auto
  • -f [SECONDS] : fetch timeout, default 10
The list of supported language codes can be found in the LANGUAGES.md file in the GitHub repository.

compatibility

The code is compatible with every current version of micro. For increased compatibility, I recommend installing the curl package instead of using the built-in one in busybox/coreutils.