(self, locale_dir: str = "locales")
| 7 | |
| 8 | class 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(): |
nothing calls this directly
no test coverage detected