Home / Function/ iter_all_lang_paths() — fastapi Function Reference

iter_all_lang_paths() — fastapi Function Reference

Architecture documentation for the iter_all_lang_paths() function in translation_fixer.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  d531465d_fafc_0ab1_2c85_e40750490b3b["iter_all_lang_paths()"]
  99e3c039_dae8_2ebf_8149_637bcc119c08["translation_fixer.py"]
  d531465d_fafc_0ab1_2c85_e40750490b3b -->|defined in| 99e3c039_dae8_2ebf_8149_637bcc119c08
  6904af51_7d5c_0095_f5b2_cf3496b75b03["get_all_paths()"]
  6904af51_7d5c_0095_f5b2_cf3496b75b03 -->|calls| d531465d_fafc_0ab1_2c85_e40750490b3b
  style d531465d_fafc_0ab1_2c85_e40750490b3b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/translation_fixer.py lines 30–52

def iter_all_lang_paths(lang_path_root: Path) -> Iterable[Path]:
    """
    Iterate on the markdown files to translate in order of priority.
    """

    first_dirs = [
        lang_path_root / "learn",
        lang_path_root / "tutorial",
        lang_path_root / "advanced",
        lang_path_root / "about",
        lang_path_root / "how-to",
    ]
    first_parent = lang_path_root
    yield from first_parent.glob("*.md")
    for dir_path in first_dirs:
        yield from dir_path.rglob("*.md")
    first_dirs_str = tuple(str(d) for d in first_dirs)
    for path in lang_path_root.rglob("*.md"):
        if str(path).startswith(first_dirs_str):
            continue
        if path.parent == first_parent:
            continue
        yield path

Domain

Subdomains

Called By

Frequently Asked Questions

What does iter_all_lang_paths() do?
iter_all_lang_paths() is a function in the fastapi codebase, defined in scripts/translation_fixer.py.
Where is iter_all_lang_paths() defined?
iter_all_lang_paths() is defined in scripts/translation_fixer.py at line 30.
What calls iter_all_lang_paths()?
iter_all_lang_paths() is called by 1 function(s): get_all_paths.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free