Skip to content

Commit

Permalink
Show Lang case-sensitivity in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
LBeaudoux committed Mar 7, 2024
1 parent bb15c9f commit 44ca0bc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,17 @@ Begin by importing the `Lang` class:
''
```

Please not that `Lang` is case-sensitive:
```python
>>> Lang("ak")
Lang(name='Akan', pt1='ak', pt2b='aka', pt2t='aka', pt3='aka', pt5='')
>>> Lang("Ak")
Lang(name='Ak', pt1='', pt2b='', pt2t='', pt3='akq', pt5='')
```

You can use the `asdict` method to return ISO 639 language values as a Python dictionary.
```python
>>> lg.asdict()
>>> Lang("fra").asdict()
{'name': 'French', 'pt1': 'fr', 'pt2b': 'fre', 'pt2t': 'fra', 'pt3': 'fra', 'pt5': ''}
```

Expand Down

0 comments on commit 44ca0bc

Please sign in to comment.