Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed language detection for no regional variant #175
This commit refines the approach to extracting language codes from the `Accept-Language` header. By employing a unified regex pattern, the code now efficiently captures both simple language codes and those with regional variants. The language code extraction logic now also splits on both hyphens and underscores, defaulting to the primary language code in cases of regional variants, and always converts the result to lowercase for consistent processing.
- Loading branch information