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

fix: return all codes in toCodes() for custom locale paths #13438

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

axu6705
Copy link

@axu6705 axu6705 commented Mar 16, 2025

Changes

  • Modified the toCodes function implementation from map to flatMap to support expanding all language codes
  • Now returns all language codes (codes) instead of just the first one (codes[0])

Testing

N/A

Docs

N/A

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Mar 16, 2025
Copy link

codspeed-hq bot commented Mar 16, 2025

CodSpeed Performance Report

Merging #13438 will not alter performance

Comparing axu6705:fix/custom-locale-paths (e4170da) with main (1eab0b2)

Summary

✅ 6 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant