Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize based on entry's locale #2657

Merged
merged 1 commit into from
Oct 14, 2020
Merged

Localize based on entry's locale #2657

merged 1 commit into from
Oct 14, 2020

Conversation

jasonvarga
Copy link
Member

Fixes #2507

The entries fieldtype will now localize its selections when augmenting based on the locale of the parent entry.

For example:

  • Have an entry in english
  • Have an entries fieldtype with a few english entries selected
  • Translate it to french

When you're viewing the french entry on the frontend and you loop over the entries, you would probably expect that they would be the french versions.

This PR does exactly that. Any entries that aren't localized into that site will simply be filtered out.

If you are expecting the existing behavior, we can add a feature that would bring that back. In our eyes, the previous behavior was a bug.

@jasonvarga jasonvarga merged commit d3b68ec into master Oct 14, 2020
@jasonvarga jasonvarga deleted the fix/2507 branch October 14, 2020 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

related content is not fetched localized
1 participant