code: def _get_translation_for_locale(self, locale):
          
          translations = None
  
          for dirname in self.paths:
              # Load a single catalog.
              catalog = Translations.load(dirname, [locale], domain=self.domain)
              if translations is None:
                  if isinstance(catalog, Translations):
                      translations = catalog
                  continue
  
              try:
                  # Merge catalog into global catalog
                  translations.merge(catalog)
              except AttributeError:
                  # Translations is probably NullTranslations
                  if isinstance(catalog, NullTranslations):
                      current_app.logger.debug(
                          'Compiled translations seems to be missing'
                          ' in {0}.'.format(dirname))
                      continue
                  raise
  
          return translations or NullTranslations()
docs: Get translation for a specific locale.