Spaces:
Running
Running
Fix issue with Moore/Mossi.
Browse files- src/helpers.py +5 -1
src/helpers.py
CHANGED
@@ -15,4 +15,8 @@ def encode_iso(lang:str)-> str:
|
|
15 |
|
16 |
def decode_iso(iso:str)-> str:
|
17 |
''' Takes an ISO-3 code and returns the name of the language. '''
|
18 |
-
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
def decode_iso(iso:str)-> str:
|
17 |
''' Takes an ISO-3 code and returns the name of the language. '''
|
18 |
+
|
19 |
+
name = pycountry.languages.get(alpha_3 = iso).name
|
20 |
+
name = name.replace("Mossi", "Mooré")
|
21 |
+
|
22 |
+
return name
|