Dependency
Dependency function to determine the localization based on the Accept-Language header.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
accept_language
|
Annotated[Union[str, None], Header()]
|
The Accept-Language header value. |
None
|
Returns:
| Type | Description |
|---|---|
Callable[[str, dict], str]
|
A partially applied gettext function with the selected locale. |