Skip to content

v2.0.0

Choose a tag to compare

@LBeaudoux LBeaudoux released this 27 Aug 15:17
· 111 commits to master since this release
af1550e

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 possible Lang 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.