MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / pick_text

Function pick_text

graphify/callflow_html.py:461–463  ·  view source on GitHub ↗

Small localization helper for generated copy.

(lang: str, zh: str, en: str)

Source from the content-addressed store, hash-verified

459
460
461def pick_text(lang: str, zh: str, en: str) -> str:
462 """Small localization helper for generated copy."""
463 return zh if is_zh(lang) else en
464
465
466def detect_lang(lang: str, nodes: list, labels: dict) -> str:

Callers 12

normalize_sectionsFunction · 0.85
label_for_communityFunction · 0.85
format_node_refsFunction · 0.85
generate_call_table_rowsFunction · 0.85
_suggest_tagFunction · 0.85
_describe_nodeFunction · 0.85
generate_overview_cardsFunction · 0.85
generate_section_cardsFunction · 0.85
_report_highlightsFunction · 0.85
write_callflow_htmlFunction · 0.85

Calls 1

is_zhFunction · 0.85

Tested by

no test coverage detected