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

Filter Bridgetown::Localizable#all_locales under the source's parent directory #671

Merged
merged 2 commits into from
Dec 20, 2022

Conversation

neilvanbeinum
Copy link
Contributor

This is a 🐛 bug fix.

Summary

This is to avoid an issue where resources with the same slugs under different directories are included in the results.

Context

Closes #660

@neilvanbeinum neilvanbeinum changed the title Filter Resource#all_locales under that resource's parent directory Filter Bridgetown::Localizable#all_locales under that resource's parent directory Dec 17, 2022
@neilvanbeinum neilvanbeinum changed the title Filter Bridgetown::Localizable#all_locales under that resource's parent directory Filter Bridgetown::Localizable#all_locales under the source's parent directory Dec 17, 2022
Otherwise, sources with the same slug but
in another directory are included.
@jaredcwhite jaredcwhite merged commit ead6fdf into bridgetownrb:main Dec 20, 2022
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.

Select in "Bridgetown::Localizable#all_locales" is not strict enough
2 participants