import { Command } from 'commander';
import pc from 'picocolors';
export default function localizeCmd() {
    return new Command('localize')
        .description('Generate translations into specified languages (requires API key)')
        .requiredOption('--langs <codes>', 'comma-separated language codes (e.g., fr,de,es)')
        .option('--device <name>', 'specific device (iphone|ipad|mac|watch), or all devices')
        .option('--provider <name>', 'translation provider (openai|deepl)', 'openai')
        .option('--review', 'review translations before saving')
        .action(async (opts) => {
        try {
            console.log(pc.bold('Localization (Coming Soon)'));
            console.log('\nThis feature will:');
            console.log('  • Read existing English captions from captions.json');
            console.log('  • Translate them using your chosen provider');
            console.log('  • Save translations back to captions.json');
            console.log('\nConfiguration:');
            console.log('  Languages:', pc.cyan(opts.langs));
            console.log('  Device:', pc.cyan(opts.device || 'all'));
            console.log('  Provider:', pc.cyan(opts.provider));
            console.log('\n' + pc.dim('Set API keys via environment variables:'));
            console.log(pc.dim('  • OPENAI_API_KEY for OpenAI'));
            console.log(pc.dim('  • DEEPL_API_KEY for DeepL'));
        }
        catch (error) {
            console.error(pc.red('Error:'), error instanceof Error ? error.message : String(error));
            process.exit(1);
        }
    });
}
//# sourceMappingURL=localize.js.map