docs: def get_locale(self, language=None, country=None, variant=None):
          """
          Returns locale which can be used for access to number formats.
          """
          # http://www.openoffice.org/api/docs/common/ref/com/sun/star/lang/Locale.html
          locale = uno.createUnoStruct('com.sun.star.lang.Locale')
          if language:
              locale.Language = language
          if country:
              locale.Country = country
          if variant:
              locale.Variant = variant
          formats = self._target.getNumberFormats()
          return Locale(locale, formats)