cdleong commited on
Commit
1e9b3ba
1 Parent(s): f78a30e

features and todos comments

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -4,7 +4,12 @@ from requests_html import HTMLSession
4
  import urllib
5
  import requests
6
 
 
 
 
7
  # TODO: add in some nice things from https://docs.streamlit.io/library/cheatsheet like error codes and status messages.
 
 
8
  st.write("# Language code/tag search")
9
  st.write("Fed up with language tag confusion? Here's your one-stop shop!")
10
  st.write("Try typing your language below! Accepts either codes like `eng`/`en`, or full names like `English`, and we will use the [langcodes](https://github.com/rspeer/langcodes) library to figure out the correct modern BCP-47 code according to [official W3 Guidelines](https://www.w3.org/International/questions/qa-choosing-language-tags)")
4
  import urllib
5
  import requests
6
 
7
+ # FEATURE: get wikipedia codes, e.g. from https://en.wikipedia.org/wiki/List_of_Wikipedias or https://meta.wikimedia.org/wiki/List_of_Wikipedias, some of which are nonstandard. Then output f"{code}.wikipedia.org"
8
+ # FEATURE: add programming languages easter egg
9
+ # TODO: fix 'knh', it has an empty ISO section. Turns out some languages only have 639-3
10
  # TODO: add in some nice things from https://docs.streamlit.io/library/cheatsheet like error codes and status messages.
11
+ # TODO: add in vachan search even if lang not found
12
+
13
  st.write("# Language code/tag search")
14
  st.write("Fed up with language tag confusion? Here's your one-stop shop!")
15
  st.write("Try typing your language below! Accepts either codes like `eng`/`en`, or full names like `English`, and we will use the [langcodes](https://github.com/rspeer/langcodes) library to figure out the correct modern BCP-47 code according to [official W3 Guidelines](https://www.w3.org/International/questions/qa-choosing-language-tags)")