TC
Twill CMS4mo ago
bora

Prefill field form with default locale content when adding translation

Would it be possible to prefill a translatable field with the saved content of the default language? For example: -Create item in default language -Switch language to fill translatable fields -Text field will be filled with the content from the default language which is already saved -Translate the content, hit save, done!
1 Reply
ifox
ifox4mo ago
Hi @bora you could achieve this by implementing afterSave in your module's repository class, but I'm curious why you are trying to do this. Depending on your frontend integration of translations, you can fallback to the default language for fields that haven't been translated.
Want results from more Discord servers?
Add your server