Localization fallback #5319
Unanswered
Ravenna
asked this question in
Troubleshooting
Replies: 2 comments
-
You can enable "entry propagation" on the collection. This only does it for new entries though, so you'll need to manually save the existing entries into the other sites. You could write a little script or command to loop over your entries and do it automatically one time. Something like this (untested) Entry::all() // assuming you want entries in all collections to work this way
->each(function ($entry) {
Site::all()
->reject('en') // you already have english ones.
->each(fn ($site) => $entry->makeLocalization($site->handle())->save());
}); |
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 site that is 90% English. The client has 2 pages they want to have translated.
I ran the multi-site generator and I see how I can use languages with this setup. But I want the English pages to show if there is no translated page. How would I set this up?
Beta Was this translation helpful? Give feedback.
All reactions