Darryl
03/12/2021, 9:53 AMdescription
, notes
, etc. Right now, those things are simply stored as (English) strings – or lists of strings in the case of notes
– but I've recently been thinking about translations. My app has the ability to provide translations for in-app strings but everything from the database, at least right now, will be in English. I'm wondering what'd be a smart way to include translations for these things straight from the database. Just thinking out loud, maybe I could store things like description
as JSON
(I'm using PostgreSQL) instead of a string and then structure that by "en", "de", etc. Then, the user's locale could be passed via query parameter. Anyway, I'm kind of new to all this and learning as I go so I'd be happy to hear some suggestions. Thanks, everyone! Have a great day.Darryl
03/12/2021, 10:07 AM