code: def find_locales(self) -> Dict[str, gettext.GNUTranslations]:
          
          translations = {}
  
          for name in os.listdir(self.path):
              if not os.path.isdir(os.path.join(self.path, name)):
                  continue
              mo_path = os.path.join(self.path, name, 'LC_MESSAGES', self.domain + '.mo')
  
              if os.path.exists(mo_path):
                  with open(mo_path, 'rb') as fp:
                      translations[name] = gettext.GNUTranslations(fp)
              elif os.path.exists(mo_path[:-2] + 'po'):
                  raise RuntimeError(f"Found locale '{name} but this language is not compiled!")
  
          return translations
docs: Load all compiled locales from path
  
          :return: dict with locales