https://github.com/kabirnayeem99/kmp-i18n-injector
A CLI tool that scans Kotlin Multiplatform (KMP) projects for missing string resources and automatically injects them into your `strings.xml` files.
https://github.com/kabirnayeem99/kmp-i18n-injector
go-tools kotlin-multiplatform-library
Last synced: 7 months ago
JSON representation
A CLI tool that scans Kotlin Multiplatform (KMP) projects for missing string resources and automatically injects them into your `strings.xml` files.
- Host: GitHub
- URL: https://github.com/kabirnayeem99/kmp-i18n-injector
- Owner: kabirnayeem99
- License: mit
- Created: 2025-04-05T12:52:00.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-04-05T16:24:52.000Z (7 months ago)
- Last Synced: 2025-04-09T21:48:22.400Z (7 months ago)
- Topics: go-tools, kotlin-multiplatform-library
- Language: Go
- Homepage:
- Size: 3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# kmp-i18n-injector
🚀 A CLI tool that scans Kotlin Multiplatform (KMP) projects for missing string resources and automatically injects them into your `strings.xml` files.
---
## ✨ Features
- 🔍 Scans `.kt` source files for `Res.string.some_key` references.
- 🧠 Detects missing imports or unresolved string resources.
- 📦 Adds missing string imports and XML entries automatically.
- 🗣️ Prompts user for translation when creating new strings.
- 📁 Supports multi-language `strings.xml` files (e.g. `values/`, `values-bn/`, etc.)
- ⚡ Built with Go – fast, cross-platform, and compiled to a single binary.
---
## 📦 Installation
### Option 1: Clone and Build
```bash
git clone https://github.com/kabirnayeem99/kmp-i18n-injector
cd kmp-i18n-injector
go build -o kmp-i18n-injector
```