return {
"valen20Chx/nvim-i18n-tools",
config = function()
require("nvim-i18n-tools").setup()
end,
}
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",
}
-- ...
}
- 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.