kraftwerk28 / gtranslate.nvim

Translate text in neovim using free Google translate API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gtranslate.nvim

Plugin for neovim to translate text through https://translate.googleapis.com

Installation:

Via packer.nvim:

use {"kraftwerk28/gtranslate.nvim", requires = {"nvim-lua/plenary.nvim"}}

Via vim-plug:

Plug 'kraftwerk28/gtranslate.nvim'
Plug 'nvim-lua/plenary.nvim'

Configuration (optional)

require("gtranslate.nvim").setup {
  default_to_language = "English"
}

Usage:

  • 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

Showcase:

About

Translate text in neovim using free Google translate API


Languages

Language:Lua 91.3%Language:Vim Script 8.7%