-
Notifications
You must be signed in to change notification settings - Fork 214
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 languages by presence of ISO #3017
Conversation
Size Change: -9.18 kB (-1%) Total Size: 886 kB
ℹ️ View Unchanged
|
Full-stack documentation: https://docs.openverse.org/_preview/3017 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any locales that don't have code
? Maybe it's safer to filter on both:
(l) => Boolean(l.code && l.iso)
?
The |
Fixes
Fixes #2986 by @obulat
Description
This PR filters locales by the presence of the
iso
field instead of thecode
field, because the ISO is used to generate SEO links and sitemaps etc.Testing Instructions
@nuxt/i18n
are not being logged.Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin