What does the translation data structure look like in DB? #440
Unanswered
momijizukamori
asked this question in
Q&A
Replies: 1 comment
-
It supports 'JSON' and 'text' data types: It creates records like: Besides, you can use some hacks like #259 to convert your text to this type, after setting $translatable=[] property on your models. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project I'd like to use laravel-translatable in, but we generate our in a different system (Weblate), which means I have data files that need to be sideloaded into the database. I'm fine writing the loader myself, but I need to know what structure laravel-translatable is expecting. We have a fairly large number of entries that need to be added, so using
setTranslation
isn't really a workable option.Beta Was this translation helpful? Give feedback.
All reactions