Deleted my languages collection by mistake, vanished with all my translations, need help

I created a new version for my website with new collections, added content to them (with translations), and then proceed to delete all the older unused collections.

The problem is that I inadvertently also deleted the languages collection by mistake, which apparently prompted a cascade situation where my new collections lost some fields related to translation.

This caused this issue (vanished translations):

If I click the "View Content“ on the translation collection, the translations still exist, they’re simply not getting listed anymore in the content.

Any ideas how can I make them appear again?

My first thought is, do you have a backup of your database? Because I’d just restore from that.

Or if you’re on Directus Cloud, you can reach out to our support team and have them roll back the database for you.

But it sounds like you should just be able to recreate the languages collection. If you’ve checked the database tables and the junction collections for the translations are still there, it should be solved by simply adding the languages collection back with the previous schema.

That’s what I would try first:

  1. Recreate the languages collection with the same fields and configuration
  2. Make sure the primary key field matches what was there before
  3. Check that your translation relations are properly reconnected

If the underlying translations data is still in your database tables - Directus just needs the field and relation information to know how to display and manage it.

Let us know if that works / doesn’t work.