def get_locale(self, language=None, country=None, variant=None):
<EOL>locale = uno.createUnoStruct('<STR_LIT>')<EOL>if language:<EOL><INDENT>locale.Language = language<EOL><DEDENT>if country:<EOL><INDENT>locale.Country = country<EOL><DEDENT>if variant:<EOL><INDENT>locale.Variant = variant<EOL><DEDENT>formats = self._target.getNumberFormats()<EOL>return Locale(locale, formats)<EOL>
Returns locale which can be used for access to number formats.