MCPcopy Create free account
hub / github.com/nodejs/node / __init__

Method __init__

deps/v8/third_party/jinja2/ext.py:257–267  ·  view source on GitHub ↗
(self, environment: Environment)

Source from the content-addressed store, hash-verified

255 # the other time for the n-parameter of the ngettext function.
256
257 def __init__(self, environment: Environment) -> None:
258 super().__init__(environment)
259 environment.globals["_"] = _gettext_alias
260 environment.extend(
261 install_gettext_translations=self._install,
262 install_null_translations=self._install_null,
263 install_gettext_callables=self._install_callables,
264 uninstall_gettext_translations=self._uninstall,
265 extract_translations=self._extract,
266 newstyle_gettext=False,
267 )
268
269 def _install(
270 self, translations: "_SupportedTranslations", newstyle: t.Optional[bool] = None

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
extendMethod · 0.45

Tested by

no test coverage detected