Skip to content

Commit

Permalink
Describe Lang class attributes in usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
LBeaudoux committed Feb 21, 2024
1 parent f1f41b3 commit bb15c9f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ Begin by importing the `Lang` class:
`Lang` is instantiable with any ISO 639 language code or name. For example, let’s try to get the ISO 639 codes for French:
```python
>>> lg = Lang("French")
>>> lg.name
>>> lg.name # English name
'French'
>>> lg.pt1
>>> lg.pt1 # Part 1 code
'fr'
>>> lg.pt2b
>>> lg.pt2b # Part 2 bibliographic code
'fre'
>>> lg.pt2t
>>> lg.pt2t # Part 2 terminological code
'fra'
>>> lg.pt3
>>> lg.pt3 # Part 3 code
'fra'
>>> lg.pt5
>>> lg.pt5 # Part 5 code
''
```

Expand Down

0 comments on commit bb15c9f

Please sign in to comment.