Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def get_lang_description_from_mapping_name(string_to_check):
|
|
15 |
return None
|
16 |
|
17 |
substrings = string_to_check.split("-")
|
18 |
-
substrings = substrings[:2] # first two
|
19 |
string_to_check = "-".join(substrings)
|
20 |
|
21 |
|
|
|
15 |
return None
|
16 |
|
17 |
substrings = string_to_check.split("-")
|
18 |
+
substrings = substrings[:2] # first two are ISO 639-3 language, and ISO 15924 script
|
19 |
string_to_check = "-".join(substrings)
|
20 |
|
21 |
|