Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.49 KB

README.md

File metadata and controls

51 lines (38 loc) · 1.49 KB

nvim-i18n-tools

A plugin to help manage, edit, and generate translations.

image image

Installation

Lazy.nvim

return {
  "valen20Chx/nvim-i18n-tools",
  config = function()
    require("nvim-i18n-tools").setup()
  end,
}

Usage

You will need a .nvim/ directory at the root of your project (directory you open neovim from), in it you must put a i18n-tools.lua file with this inside:

return {
  -- First sub-directory
  {
    -- path to the i18n file relative to this one (i18n-tools.lua)
    translations = "../path/to/the/translation/file.json",
  },
  -- Second sub-directory
  {
    -- path to the i18n file relative to this one (i18n-tools.lua)
    translations = "../path/to/another/translation/file.json",
  }
  -- ...
}

Future

  • Edit translations (some kind of popup)
  • Generate translations
  • Add more languages (translations files and programming language)

Please feel free to contact me if you want to help, and we'll see what to do. This is a learning opportunity for me so don't expect this to be a complete plugin soon.