OnroerendErfgoed / language-tags

Dealing with IANA language tags in Python

Home Page:https://pypi.python.org/pypi/language-tags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Output of __str__ functions

koenedaele opened this issue · comments

Currently this dumps a lot of json, this should just be a simple and readable string.

nlbe = tags.tags('nl-Latn-BE')
print(nlbe) # shows 'nl-Latn-BE'
print(nlbe.language) # shows 'nl'
print(nlbe.script) #show 'Latn'

The current json dump might be more appropriate for a repr function.