def _get_locale_loader(cls): if not cls.locale_loader: cls.locale_loader = LocaleDataLoader() return cls.locale_loader
def __init__(self): self.loader = LocaleDataLoader() self.available_language_map = self.loader.get_locale_map() self.search = ExactLanguageSearch(self.loader)