A plugin to improve your workflow with i18n.
Warning
nvim-i18n is still in early stages of development.
{
"olrtg/nvim-i18n",
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
config = true,
},
:Internationalization
You can navigate with h
/j
/k
/l
, H
for closing all nodes, L
for opening all nodes, Enter
for opening nodes or editing translations, T
for translating all the sibling translations using the current translation as the base.
- Locales directory detection
- Read/Write JSON support
- Read/Write YAML support
- Automatic translations based on a language
- With multiple engines
- Conceal keys with their translations (don't know if conceals can be updated in real time)
Framework support:
- react-i18next. Works with
t('some.key')
function and<Trans />
component, but no support for namespaces yet.
I often work with translations files and since I've migrated to neovim (late 2021) the only missing piece to stay forever in neovim is a i18n plugin. Visual Studio Code has one called i18n-ally which it's f*cking great and I sometimes just hate opening vscode to use that plugin.
This is my attempt of building something like that but for neovim. I'm fairly new when it comes to plugin development (this is my second plugin) but since I don't see anyone building something like this I've decided to take matters into my own hands.
Hope you enjoy it!