Plugin for neovim to translate text through https://translate.googleapis.com
Via packer.nvim:
use {"kraftwerk28/gtranslate.nvim", requires = {"nvim-lua/plenary.nvim"}}
Via vim-plug:
Plug 'kraftwerk28/gtranslate.nvim'
Plug 'nvim-lua/plenary.nvim'
require("gtranslate.nvim").setup {
default_to_language = "English"
}
- Select the text to translate (visual mode);
- Run one of the following commands:
:Translate <from-language> <to-language>
:Translate <to-language> " In that case, the <from-language> is automatic
:Translate " Translate to <default_to_language>; <from-language> is automatic