Skip to content

Instantly share code, notes, and snippets.

@TasseDeCafe
TasseDeCafe / translate-missing.mjs
Last active November 15, 2025 20:21
Script that automatically translates missing translations in .po file
#!/usr/bin/env node
/**
* Translate missing translations in Lingui catalog files using Claude AI
*
* This script:
* 1. Reads lingui.config.js to find all .po catalog files
* 2. Parses each .po file to find missing translations
* 3. Uses Claude API to translate missing entries
* 4. Writes translations back to the .po files
*/