update_and_add() — fastapi Function Reference
Architecture documentation for the update_and_add() function in translate.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 96a30f99_ac75_385b_8ee8_e54a8a6c3ea6["update_and_add()"] 6dda5e35_b655_8af3_cd89_8c1584a092c4["translate.py"] 96a30f99_ac75_385b_8ee8_e54a8a6c3ea6 -->|defined in| 6dda5e35_b655_8af3_cd89_8c1584a092c4 9ce4d449_89b1_9335_4e37_57480b7dc100["update_outdated()"] 96a30f99_ac75_385b_8ee8_e54a8a6c3ea6 -->|calls| 9ce4d449_89b1_9335_4e37_57480b7dc100 1197b802_6f25_2a74_88df_75858855484e["add_missing()"] 96a30f99_ac75_385b_8ee8_e54a8a6c3ea6 -->|calls| 1197b802_6f25_2a74_88df_75858855484e style 96a30f99_ac75_385b_8ee8_e54a8a6c3ea6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/translate.py lines 376–384
def update_and_add(
language: Annotated[str, typer.Option(envvar="LANGUAGE")],
max: Annotated[int, typer.Option(envvar="MAX")] = 10,
) -> None:
print(f"Updating outdated translations for {language}")
update_outdated(language=language, max=max)
print(f"Adding missing translations for {language}")
add_missing(language=language, max=max)
print(f"Done updating and adding for {language}")
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does update_and_add() do?
update_and_add() is a function in the fastapi codebase, defined in scripts/translate.py.
Where is update_and_add() defined?
update_and_add() is defined in scripts/translate.py at line 376.
What does update_and_add() call?
update_and_add() calls 2 function(s): add_missing, update_outdated.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free