

But why would I need that? (Onest question, I hope I don’t sound rude)
I mean, I could easily retrieve the list of available languages, and it makes it faster to delete them using an ON DELETE CASCADE
(right?), but it also complicates stuff a bit for general use
Sorry, I didn’t think to add in the post that the translations are in fact of user generated content, and are themselves provided by users.
Project Fluent is still a good resource tho, thank you.
And also yeah, I’ll use a better schema for language tags, that’s a clear fault
I still don’t get why having a separate table for languages is useful. I mean, even if the translation changes, the language itself will remain the same, right?Oh, right. Taking into account language variants makes VERY obvious why I’d want to use a table to store them.
Onestly, I just hope that won’t be something i should have to worry about. The rest of the codebase is as shitty as it gets, and I don’t want to be the one to refactor it for proper localization. I’m implementing a new feature that allows me some degree of movement to think about a good design for that, and new, features, but this is as far as I’ll go (Yes I know I probably sound like an ass but it really is that bad)