Come Funziona
Uno sguardo sotto il cofano su come TranslateBot gestisce le tue traduzioni.
Scansione
Trova tutti i file .po nelle tue directory locale
Diff
Identifica le voci con valori msgstr vuoti
Traduci
Invia batch al modello AI scelto
Scrittura
Aggiorna i tuoi file .po con le traduzioni
Preservazione dei Placeholder
Django usa placeholder speciali per i valori dinamici. Romperli causa crash della tua app. TranslateBot li mantiene intatti.
Input (msgid)
Welcome back, %(username)s! You have %(count)d new messages.
Output (msgstr - Francese)
Bon retour, %(username)s ! Vous avez %(count)d nouveaux messages.
%(name)s
Stringa nominata
%(count)d
Intero nominato
%s
Stringa posizionale
{0}
Indice di formato
Perché il Dry Run?
Prima di eseguire una traduzione completa, usa --dry-run per vedere esattamente cosa verrebbe tradotto - senza effettuare chiamate API o modifiche ai tuoi file.
$
python manage.py translate --target-lang nl --dry-run
ℹ️ Found 3 untranslated entries
🔍 Dry run mode: skipping LLM translation
✓ Would translate 'Welcome to our platform'
✓ Would translate 'Save changes'
✓ Would translate 'Delete account'
Dry run complete: 3 entries would be translated
Nessun costo API
Vedi cosa necessita traduzione
Nessuna modifica ai file