Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
/ nvim-i18n Public archive

๐ŸŒ A plugin to improve your workflow with i18n

License

Notifications You must be signed in to change notification settings

olrtg/nvim-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

36 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

nvim-i18n

A plugin to improve your workflow with i18n.

Warning

nvim-i18n is still in early stages of development.

Installation

lazy.nvim

{
  "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

  • 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.

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 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!

About

๐ŸŒ A plugin to improve your workflow with i18n

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published