| 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 |