INNER CODE UNIT · Python

check_i18n_entrypoints

zhinkgit/embeddedskills · .github/maintenance/repo_checks.py:145

def check_i18n_entrypoints(root: Path) -> list[str]:
    errors: list[str] = []
    pairs = [
        (root / "README.md", root / "README.en.md"),
        (
            root / "docs" / "getting-started.md",
            root / "docs" / "getting-started.en.md",
        ),
    ]
    for chinese, english in pairs:
        if not chinese.is_file():
            errors.append(f"missing Chinese entrypoint: {chinese.relative_to(root)}")
        if not english.is_file():
            errors.append(f"missing English entrypoint: {english.relative_to(root)}")

    if not all(path.is_file() for pair in pairs for path in pair):
        return errors

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…