babelbrew
v0.0.1
Published
BabelBrew - A translation tool
Readme
BabelBrew CLI
A command-line interface for BabelBrew translation service.
Installation
# Install from npm
npm install -g babelbrew
# Or use directly with npx
npx babelbrew [command] [options]Development
# Run in development mode with tsx
npm run dev -- [command] [options]
# Build the project
npm run build
# Test the built version locally with npx
npx . [command] [options]Usage
npx babelbrew [options] [command]Commands
Push content for translation
npx babelbrew push [options]Options:
-c, --config <file>- Path to config file (default: "babelbrew.yaml")
Pull translated content
npx babelbrew pull [options]Options:
-l, --languages <languages>- Comma-separated list of language codes (if not specified, pulls all languages from config.locales.targets)-c, --config <file>- Path to config file (default: "babelbrew.yaml")
Configuration
BabelBrew uses a YAML configuration file. Here's a simple example:
# BabelBrew Configuration
version: 1
# Locales configuration
locales:
source: "en"
targets:
- "fr"
- "de"
- "es"
- "ja"Additional configuration options will be added in future versions.
