INNER CODE UNIT · Python

cell

blokadaorg/blokada · .github/scripts/translation_coverage.py:103

    def cell(v):
        return f"{v:.1f}%" if v is not None else "n/a"

    lines = [
        "### Translation coverage (primary languages)",
        "",
        "| lang | file | ui | packs | packtags | overall |",
        "|------|------|----|-------|----------|---------|",
    ]
    for lang, mapped, per_cat, overall in rows:
        lines.append(
            f"| {lang} | `{mapped}.json` | {cell(per_cat['ui'])} | "
            f"{cell(per_cat['packs'])} | {cell(per_cat['packtags'])} | "
            f"**{overall:.1f}%** |"
        )
    lines.append("")
    lines.append(
        "_Coverage counts source keys that are present, non-empty, and differ "

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…