Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/fastapi/fastapi
/ get_langs
Function
get_langs
scripts/translate.py:37–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
36
@lru_cache
37
def
get_langs() -> dict[str, str]:
38
return
yaml.safe_load(Path(
"docs/language_names.yml"
).read_text(encoding=
"utf-8"
))
39
40
41
def
generate_lang_path(*, lang: str, path: Path) -> Path:
Callers
3
translate_page
Function · 0.85
get_llm_translatable
Function · 0.85
list_all_removable
Function · 0.85
Calls
1
Path
Class · 0.50
Tested by
no test coverage detected