Edge Cases — Aquilia Documentation
Comprehensive guide and documentation for Edge Cases in the Aquilia framework. View API reference, examples, and implementation patterns.
i18n / Edge Cases Edge Cases and Limitations This page captures behavior verified by tests plus practical implementation gaps that matter in production. Use it as a deployment hardening checklist. Validated Behaviors ))} Current Gaps and Caveats ))} Recommended Mitigations # 1) Keep resolver order explicit in production config Integration.i18n(resolver_order=["query", "cookie", "session", "header"]) # 2) Prefer request.state locale in controllers locale = request.state.get("locale", "en") # 3) Pair lazy context set/clear in custom middleware via try/finally from aquilia.i18n import set_lazy_context, clear_lazy_context set_lazy_context(service, locale) try: # Handle request pass finally: clear_lazy_context() )
Go to Homepage