@cond/i18n-editor

1.0.1 • Public • Published

i18n Editor

A simple web-based tool to manage translation files efficiently.

Features

Edit and manage locale files in your browserSupports JSON-based translation filesAutomatically updates or adds new translation keysLightweight and easy to useNo command-line setup requiredStarts on a random available portSupports custom locales directory (default: locales/)

Installation

1️⃣ Install via npm

npm install -g i18n-editor

2️⃣ Run the Web Interface

i18n-editor [--locales <directory>]

This will start a local web server on a random available port and open the editor in your default browser.

Example with a Custom Locales Directory

i18n-editor --locales my-translations/

By default, the tool looks for locale files in the locales/ directory.

Usage

  1. The tool will automatically open in your browser.
  2. View and edit all translations in a structured table.
  3. Click on a translation field to modify its value.
  4. Changes are saved automatically.

Folder Structure

📂 project-root
 ├── 📂 locales            # Default JSON translation files
 │   ├── en.json
 │   ├── fr.json
 │   └── es.json
 ├── package.json          # Project dependencies
 ├── README.md             # Documentation

Contributing

Feel free to open a PR if you’d like to improve the tool! 🚀

License

MIT License

Package Sidebar

Install

npm i @cond/i18n-editor

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

26.6 kB

Total Files

9

Last publish

Collaborators

  • cond