Language-tags

Latest version: v1.2.0

Safety actively analyzes 638720 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

0.3.1

-----

- Upgrade to <https://github.com/mattcg/language-subtag-registry/releases/tag/v0.3.8>

0.3.0

-----

- Upgrade to <https://github.com/mattcg/language-subtag-registry/releases/tag/v0.3.6>
- Simplify output of __str__ functions. The previous json dump is assigned to the repr function.

.. code-block:: python

nlbe = tags.tags('nl-Latn-BE')
> print(nlbe)
'nl-Latn-BE'
> print(nlbe.language)
'nl'
> print(nlbe.script)
'Latn'

0.2.0

-----

- Adjust language, region and script properties of Tag. The properties will return `language_tags.Subtag.Subtag`
instead of a list of string subtags

.. code-block:: python

> print(tags.tag('nl-BE').language)
'{"subtag": "nl", "record": {"Subtag": "nl", "Suppress-Script": "Latn", "Added": "2005-10-16", "Type": "language", "Description": ["Dutch", "Flemish"]}, "type": "language"}'
> print(tags.tag('nl-BE').region)
'{"subtag": "be", "record": {"Subtag": "BE", "Added": "2005-10-16", "Type": "region", "Description": ["Belgium"]}, "type": "region"}'
> print(tags.tag('en-mt-arab').script)
'{"subtag": "arab", "record": {"Subtag": "Arab", "Added": "2005-10-16", "Type": "script", "Description": ["Arabic"]}, "type": "script"}'

0.1.1

-----

- Added string and Unicode functions to make it easy to print Tags and Subtags.

.. code-block:: python

> print(tags.tag('nl-BE'))
'{"tag": "nl-be"}'

- Added functions to easily select either the language, region or script subtags strings of a Tag.

.. code-block:: python

> print(tags.tag('nl-BE').language)
['nl']

0.1.0

-----

- Initial version

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.