MCPcopy Index your code
hub / github.com/nodejs/node / ngettext

Function ngettext

tools/inspector_protocol/jinja2/ext.py:149–154  ·  view source on GitHub ↗
(__context, __singular, __plural, __num, **variables)

Source from the content-addressed store, hash-verified

147def _make_new_ngettext(func):
148 @contextfunction
149 def ngettext(__context, __singular, __plural, __num, **variables):
150 variables.setdefault('num', __num)
151 rv = __context.call(func, __singular, __plural, __num)
152 if __context.eval_ctx.autoescape:
153 rv = Markup(rv)
154 return rv % variables
155 return ngettext
156
157

Callers

nothing calls this directly

Calls 3

MarkupClass · 0.50
setdefaultMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…