MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / t

Function t

Scripts/Developer Base/Tree Explorer.py:142–148  ·  view source on GitHub ↗
(key: str, lang: str, **kwargs)

Source from the content-addressed store, hash-verified

140 'yes_no_default_no': '[y/N]: '}
141
142def t(key: str, lang: str, **kwargs) -> str:
143 pack = I18N.get(key, {})
144 text = pack.get(lang) or pack.get("en") or key
145 try:
146 return text.format(**kwargs)
147 except Exception:
148 return text
149
150
151# ------------------ ANSI coloring ------------------

Callers 15

build_summary_textFunction · 0.70
format_dupesFunction · 0.70
prompt_pathFunction · 0.70
prompt_intFunction · 0.70
yesnoFunction · 0.70
prompt_textFunction · 0.70
choose_languageFunction · 0.70
export_textFunction · 0.70
install_selfFunction · 0.70
file_info_textFunction · 0.70
explorer_modeFunction · 0.70
run_quickFunction · 0.70

Calls 4

match_anyFunction · 0.70
get_total_sizeFunction · 0.70
formatMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected