How to build form using some JSON structure?
For example I want to save my texts on 3 different languages and I want to store them in JSON
{
"en": {"text": "hello", "url": "https://ex.com"},
"es": {"text": "hola", "url": "https://xcx.com"},
"de": {"text": "hallo", "url": "https://de.com"}
}
How can I edit and display them in Filament. Builder seems like solution for some schema - but I need only to preserve some structure of my json, I want to have strictly 3 predefined languages.
2 Replies
Here is how you publish filaments own language translations:
https://filamentphp.com/docs/3.x/panels/installation#publishing-translations
Maybe you can build something like this for yourself? Only a thought...
Filament
Spatie Translatable by Filament - Filament
Filament support for Spatie's Laravel Translatable package.