Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,8 @@ if lang is None:
|
|
35 |
if lang is not None:
|
36 |
display = lang.display_name()
|
37 |
|
38 |
-
st.write(f"
|
39 |
st.write(f"Display name for {lang}: {lang.display_name()}")
|
40 |
st.write(f"Autonym for {lang}: {lang.autonym()}")
|
41 |
st.write(f"Alpha3 version (deprecated): {lang.to_alpha3()}")
|
|
|
|
35 |
if lang is not None:
|
36 |
display = lang.display_name()
|
37 |
|
38 |
+
st.write(f"BCP-47 tag for {langtext}, according to the langcodes library: {lang}")
|
39 |
st.write(f"Display name for {lang}: {lang.display_name()}")
|
40 |
st.write(f"Autonym for {lang}: {lang.autonym()}")
|
41 |
st.write(f"Alpha3 version (deprecated): {lang.to_alpha3()}")
|
42 |
+
st.write(f"Correct, standardized, BCP-47 tag for {langtext}, according to the langcodes library: {langcodes.standardize_tag(lang)}")
|