Skip to content

Commit

Permalink
Fix country name converter example.
Browse files Browse the repository at this point in the history
Add language.name example.
  • Loading branch information
ratoaq2 authored and Diaoul committed Jan 3, 2023
1 parent 942c881 commit ce44f5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Country representation from 2-letter code (ISO-3166):

Built-in country converters (name):
```python
>>> country = babelfish.Country('GB')
>>> country = babelfish.Country.fromname('United Kingdom')
>>> country
<Country [GB]>
```
Expand Down Expand Up @@ -59,6 +59,8 @@ Built-in language converters (alpha2, alpha3b, alpha3t, name, scope, type and op
>>> language = babelfish.Language('por', 'BR')
>>> language.alpha2
'pt'
>>> language.name
'Portuguese'
>>> language.scope
'individual'
>>> language.type
Expand Down

0 comments on commit ce44f5b

Please sign in to comment.