Skip to content

Commit

Permalink
app en espanol
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariana Vivas authored and Mariana Vivas committed Nov 6, 2024
1 parent f7df3d0 commit f922866
Show file tree
Hide file tree
Showing 10 changed files with 599 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import streamlit as st
from streamlit_option_menu import option_menu
from st_social_media_links import SocialMediaIcons

import importlib
from utils import load_sidebar_tabs
import json
import importlib.util
import os
from st_social_media_links import SocialMediaIcons

def load_module_from_path(module_name, file_path):
spec = importlib.util.spec_from_file_location(module_name, file_path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
return module


st.set_page_config(
page_title="ATLAS for Teachers",
Expand Down Expand Up @@ -113,8 +121,10 @@ def reset_language():
module.run(selected_language)

elif selected_tab == tabs[3]:
module = importlib.import_module("03_analyses")
module.run(selected_language)
# Dynamically import 03_analysis.py from the language-specific folder
module_path = f"docs.{selected_language.lower()}.analyses.03_analyses"
module = importlib.import_module(module_path)
module.run(selected_language)

elif selected_tab == tabs[4]:
module = importlib.import_module("04_extrapython")
Expand Down
Empty file added docs/__init__.py
Empty file.
Empty file added docs/english/__init__.py
Empty file.
File renamed without changes.
Empty file.
Empty file added docs/spanish/__init__.py
Empty file.
585 changes: 585 additions & 0 deletions docs/spanish/analyses/03_analyses.py

Large diffs are not rendered by default.

Empty file.
Binary file not shown.
Binary file not shown.

0 comments on commit f922866

Please sign in to comment.