:param preferred: the list of locale identifiers preferred by the user
:param available: the list of locale identifiers available
:param aliases: a dictionary of aliases for locale identifiers
+ :param sep: separator for parsing; e.g. Windows tends to use '-' instead of '_'.
"""
identifier = negotiate_locale(preferred, available, sep=sep,
aliases=aliases)
:type skeleton: str
:param options: An iterable of other skeletons to match against
:type options: Iterable[str]
+ :param allow_different_fields: Whether to allow a match that uses different fields
+ than the skeleton requested.
+ :type allow_different_fields: bool
+
:return: The closest skeleton match, or if no match was found, None.
:rtype: str|None
"""
:param template: the reference catalog, usually read from a POT file
:param no_fuzzy_matching: whether to use fuzzy matching of message IDs
+ :param update_header_comment: whether to copy the header comment from the template
+ :param keep_user_comments: whether to keep user comments from the old catalog
+ :param update_creation_date: whether to copy the creation date from the template
"""
messages = self._messages
remaining = messages.copy()
:param fileobj: a readable file-like object containing the configuration
text to parse
+ :param filename: the name of the file being parsed, for error messages
"""
extractors = {}
method_map = []
"""
Tokenize JavaScript/JSX source. Returns a generator of tokens.
+ :param source: The JavaScript source to tokenize.
:param jsx: Enable (limited) JSX parsing.
:param dotted: Read dotted names as single name token.
:param template_string: Support ES6 template strings
:type decimal_quantization: bool
:param force_frac: DEPRECATED - a forced override for `self.frac_prec`
for a single formatting invocation.
+ :param group_separator: Whether to use the locale's number group separator.
:param numbering_system: The numbering system used for formatting number symbols. Defaults to "latn".
The special value "default" will use the default numbering system of the locale.
:return: Formatted decimal string.