Get Started

Translation History

LangCTL automatically tracks every translation change, storing complete snapshots for rollback and auditing.

Automatic History Tracking

Every update to translation_keys triggers automatic history creation:

-- Database trigger creates history automatically
CREATE TRIGGER track_translation_changes
AFTER UPDATE ON translation_keys
FOR EACH ROW
EXECUTE FUNCTION create_translation_history();

-- Stores complete snapshot in translation_history table
{
"key_id": "uuid",
"translations": { "en": "Old value", "es": "Valor antiguo" },
"changed_by": "user-uuid",
"changed_at": "2024-04-15T10:30:00Z",
"changes": { "es": { "old": "Valor antiguo", "new": "Nuevo valor" } }
}

Benefits

  1. Rollback Capability - Restore previous translations
  2. Audit Trail - Track who changed what
  3. Debugging - Understand translation evolution
  4. Compliance - Meet audit requirements
ℹ️
Note

History is automatically created on UPDATE operations. No manual action required. Retention: 90 days (Free/Pro), 1 year (Team), unlimited (Enterprise).

Next Steps