(url: str, lang_code: str)
| 277 | |
| 278 | |
| 279 | def _add_lang_code_to_url(url: str, lang_code: str) -> str: |
| 280 | if url.startswith(TIANGOLO_COM): |
| 281 | rel_url = url[len(TIANGOLO_COM) :] |
| 282 | if not rel_url.startswith(ASSETS_URL_PREFIXES): |
| 283 | url = url.replace(TIANGOLO_COM, f"{TIANGOLO_COM}/{lang_code}") |
| 284 | return url |
| 285 | |
| 286 | |
| 287 | def _construct_markdown_link( |
no outgoing calls
no test coverage detected