1.0.1 • Published 10 months ago
@cond/i18n-editor v1.0.1
i18n Editor
A simple web-based tool to manage translation files efficiently.
Features
✅ Edit and manage locale files in your browser
✅ Supports JSON-based translation files
✅ Automatically updates or adds new translation keys
✅ Lightweight and easy to use
✅ No command-line setup required
✅ Starts on a random available port
✅ Supports custom locales directory (default: locales/)
Installation
1️⃣ Install via npm
npm install -g i18n-editor2️⃣ 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
- The tool will automatically open in your browser.
- View and edit all translations in a structured table.
- Click on a translation field to modify its value.
- 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 # DocumentationContributing
Feel free to open a PR if you’d like to improve the tool! 🚀
License
MIT License