Translatable plugin locale switcher not working #11542
Unanswered
christopheraseidl
asked this question in
Help
Replies: 1 comment 8 replies
-
Did you add the meta in the $translatable property in the model? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Other
Package Version
v3.2.35
How can we help you?
I have installed the Spatie Translatable plugin v3.2, followed the instructions in the Filament and Spatie documentation, and set up my resource to translate columns on a relationship called "meta." I have two problems at the moment:
The locale switcher defaults to English, whereas my current app locale is actually Spanish. How do I get the locale switcher to sync with what my current locale is?
When I switch locales, the translatable fields all go blank. Looking in the database, the data is there, exactly like the English data (added via a Seeder). E.g. for my title column:
{"en": "Course", "es": "Curso"}
. Here is the relevant area in the form:Beta Was this translation helpful? Give feedback.
All reactions