code: def locales(self, query=None):
          
  
          if query is None:
              query = {}
  
          return self._get(
              self.environment_url('/locales'),
              query
          )
docs: Fetches all Locales from the Environment (up to the set limit, can be modified in `query`).
  
          # TODO: fix url
          API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/assets/assets-collection/get-all-assets-of-a-space
  
          :param query: (optional) Dict with API options.
          :return: List of :class:`Locale <contentful.locale.Locale>` objects.
          :rtype: List of contentful.locale.Locale
  
          Usage:
              >>> locales = client.locales()
              [<Locale[English (United States)] code='en-US' default=True fallback_code=None optional=False>]