From ce44f5bfa5573b1def94e01424476d69f35fa100 Mon Sep 17 00:00:00 2001 From: Rato Date: Tue, 3 Jan 2023 10:01:05 +0100 Subject: [PATCH] Fix country name converter example. Add language.name example. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 17defad..e684cc0 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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