MCPcopy Create free account
hub / github.com/python-pendulum/pendulum / translation

Method translation

src/pendulum/locales/locale.py:74–75  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

72 return self._key_cache[key]
73
74 def translation(self, key: str) -> Any:
75 return self.get(f"translations.{key}")
76
77 def plural(self, number: int) -> str:
78 return cast(str, self._data["plural"](number))

Callers 6

match_translationMethod · 0.95
in_wordsMethod · 0.80
in_wordsMethod · 0.80
FormatterClass · 0.80
_replace_tokensMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected