| TestNew | Basic middleware creation with Accept-Language header | Detects language from Accept-Language header (“es”) |
| TestWithOptions_QueryParam | Custom query parameter detection | Detects language from query parameter “language=de” |
| TestWithOptions_Cookie | Custom cookie name detection | Detects language from cookie “user_lang=ja” |
| TestWithOptions_PathPrefix | Path prefix language detection | Detects “fr” from “/fr/page” and strips prefix to “/page” |
| TestWithOptions_AcceptLanguageQuality | Quality value parsing in Accept-Language | Selects “fr” with q=0.9 over “en” with q=0.5 |
| TestWithOptions_AcceptLanguageRegion | Regional language variant detection | Detects exact match “en-GB” from regional variants |
| TestWithOptions_Fallback | Default language fallback | Falls back to “en” when unsupported language “zh” requested |
| TestWithOptions_Priority | Detection priority order | Query parameter (“es”) takes priority over Accept-Language (“fr”) |
| TestFromContext | Context retrieval alias function | Get() and FromContext() return identical values |
| TestWithOptions_NoHeader | No language hints provided | Falls back to default language “en” |
| TestWithOptions_CaseInsensitive | Case-insensitive language matching | Matches “es” query to “ES” in supported languages |