Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olrtg/nvim-i18n
🌍 A plugin to improve your workflow with i18n
https://github.com/olrtg/nvim-i18n
i18n neovim nvim plugin
Last synced: 5 days ago
JSON representation
🌍 A plugin to improve your workflow with i18n
- Host: GitHub
- URL: https://github.com/olrtg/nvim-i18n
- Owner: olrtg
- License: mit
- Created: 2023-06-04T03:23:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-07T19:21:40.000Z (7 months ago)
- Last Synced: 2024-04-07T20:27:47.710Z (7 months ago)
- Topics: i18n, neovim, nvim, plugin
- Language: Lua
- Homepage:
- Size: 43.9 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nvim-i18n
A plugin to improve your workflow with i18n.> [!WARNING]
> **nvim-i18n** is still in early stages of development.# Installation
**[lazy.nvim](https://github.com/folke/lazy.nvim)**
```lua
{
"olrtg/nvim-i18n",
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
config = true,
},
```# Usage
```
: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.
# Features
- [x] Locales directory detection
- [x] Read/Write JSON support
- [ ] Read/Write YAML support
- [x] 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:**
- [x] react-i18next. Works with `t('some.key')` function and `` component, but no support for namespaces yet.
# Motivation
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](https://github.com/lokalise/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!