code: def get_locales(self):
          
          if self._locales_cache is None:
              langs = [self.babel.default_locale]
              for l, dummy_title in current_app.config.get('I18N_LANGUAGES', []):
                  langs.append(self.babel.load_locale(l))
              self._locales_cache = langs
          return self._locales_cache
docs: Get a list of supported locales.
  
          Computes the list using ``I18N_LANGUAGES`` configuration variable.