Feature Request
Summary
VisaIQ targets a global audience but is English-only. Adding i18n support for Hindi, Spanish, and French would significantly expand reach.
Proposed Implementation
# i18n/translations.py
TRANSLATIONS = {
"en": {
"title": "Visa Processing Intelligence",
"predict_tab": "Predict",
"train_tab": "Train",
"country_label": "Country of application",
"submit_btn": "Generate estimate",
"estimated_time": "Estimated time",
},
"hi": {
"title": "वीज़ा प्रोसेसिंग इंटेलिजेंस",
"predict_tab": "अनुमान",
"train_tab": "प्रशिक्षण",
"country_label": "आवेदन का देश",
"submit_btn": "अनुमान लगाएं",
"estimated_time": "अनुमानित समय",
},
"es": {
"title": "Inteligencia de Procesamiento de Visas",
"predict_tab": "Predecir",
"submit_btn": "Generar estimación",
}
}
def t(key: str, lang: str = "en") -> str:
return TRANSLATIONS.get(lang, TRANSLATIONS["en"]).get(key, key)
In app.py:
lang = st.sidebar.selectbox("🌍 Language", ["en", "hi", "es", "fr"],
format_func=lambda x: {"en": "🇬🇧 English", "hi": "🇮🇳 Hindi", "es": "🇪🇸 Español"}[x])
Impact
- Reaches 500M+ Hindi speakers
- Expands to Latin American visa applicants
- Makes VisaIQ truly global
enhancement i18n accessibility global
Feature Request
Summary
VisaIQ targets a global audience but is English-only. Adding i18n support for Hindi, Spanish, and French would significantly expand reach.
Proposed Implementation
In
app.py:Impact
enhancementi18naccessibilityglobal