Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /mardiros_fastlife /src /fastlife /adapters /fastapi /localizer.py
| from typing import Annotated | |
| from fastapi import Depends | |
| from fastlife.adapters.fastapi.request import Request | |
| from fastlife.service.translations import Localizer as RequestLocalizer | |
| def get_localizer(request: Request) -> RequestLocalizer: | |
| """Return the localizer for the given request.""" | |
| return request.registry.localizer(request.locale_name) | |
| Localizer = Annotated[RequestLocalizer, Depends(get_localizer)] | |
| """Define a localizer""" | |
Xet Storage Details
- Size:
- 448 Bytes
- Xet hash:
- 2dfa12887fc7a3923358848db95345a711dc3e6f50c733e3f2ec0ba6eba365fc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.