
Convert your Google Sheets translations into structured JSON files with a single command.
Quick start
npm install sheets-translate-to-json
import { SheetManager } from 'sheets-translate-to-json';
const manager = new SheetManager(privateKey, clientEmail, sheetId);
await manager.init('./translations');
// Creates en.json, fr.json, es.json, etc.
Features
- Simple API — One method to fetch and write all translations
- Multi-sheet support — Read from specific sheets or merge all sheets automatically
- Nested keys — Dot-notation keys (
nav.home) are expanded into nested JSON objects - TypeScript — Full type definitions included
- Flexible — Use
initfor the quick path, orread/writeseparately for full control - Two-way sync — Push local changes back to Google Sheets, or use
syncto reconcile both directions with configurable conflict strategies
Get started
Ready to use sheets-translate-to-json? Check out the Installation guide.
Contributing
We welcome contributions! See the GitHub repository for details.
- Fork the project
- Create a feature branch
- Make your changes and add tests
- Submit a Pull Request