MCPcopy Index your code
hub / github.com/dataease/SQLBot / __init__

Method __init__

backend/common/utils/locale.py:9–12  ·  view source on GitHub ↗
(self, locale_dir: str = "locales")

Source from the content-addressed store, hash-verified

7
8class I18n:
9 def __init__(self, locale_dir: str = "locales"):
10 self.locale_dir = Path(locale_dir)
11 self.translations: Dict[str, Dict[str, Any]] = {}
12 self.load_translations()
13
14 def load_translations(self):
15 if not self.locale_dir.exists():

Callers

nothing calls this directly

Calls 1

load_translationsMethod · 0.95

Tested by

no test coverage detected