khof312 commited on
Commit
30539df
·
1 Parent(s): 969208d

Fix issue with Moore/Mossi.

Browse files
Files changed (1) hide show
  1. 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
- return pycountry.languages.get(alpha_3 = iso).name
 
 
 
 
 
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