Releases: LBeaudoux/iso639
Releases · LBeaudoux/iso639
v2.0.0
Breaking change
- Immutability of
Lang
. In order to be added into sets or used as dict keys,Lang
instances must be hashable. As the hash of an instance needs to be predictable, Lang is now immutable.
New features
- hashability of
Lang
- sortability of
Lang
(by name) - support of ISO 639-3 types
- support of ISO 639-3 scopes
iter_langs
iterator through all possibleLang
instances
Bug fixes
- not just invalid strings but any invalid argument passed to Lang raises an
InvalidLanguageValue
exception. - as long as they are compatible, positional and keyword arguments can be passed to
Lang
together.
v1.0.0
v0.3.1
v0.3.0
v0.2.0
v0.1.1
v0.1.0
- add attribute indexing (e.g. you can call Lang("fr")["name"] in addition to Lang("fr").name)
- allow instantiation with one or multiple compatible keyword arguments (e.g. Lang(pt1="fr", pt3="fra"))
- expand ISO 639-2 support to languages not covered by ISO 639-3
- add ISO 639-5 support
- improve representation of Lang