Server : nginx/1.24.0 System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE Directory : /lib/python3/dist-packages/babel/__pycache__/ |
Upload File : |
� ƪb� � � � d dl mZ dd�Zd� Zy)� )� get_globalc � � t | � j � } dh}|r|j d� |r|j d� t d� j | i � }|j � D ��cg c] \ }}|j d� |v r|d |f��! }}}|j d�� t d � |D � � S c c}}w ) a^ Get the official language(s) for the given territory. The language codes, if any are known, are returned in order of descending popularity. If the `regional` flag is set, then languages which are regionally official are also returned. If the `de_facto` flag is set, then languages which are "de facto" official are also returned. .. warning:: Note that the data is as up to date as the current version of the CLDR used by Babel. If you need scientifically accurate information, use another source! :param territory: Territory code :type territory: str :param regional: Whether to return regionally official languages too :type regional: bool :param de_facto: Whether to return de-facto official languages too :type de_facto: bool :return: Tuple of language codes :rtype: tuple[str] �official�official_regional�de_facto_official�territory_languages�official_status�population_percentT)�reversec 3 �&