/** * @file languagesNew.js * @brief Script with translations and fuction for switching the language. * * This script set up the translations in CZ and AJ. Language switching works through event listener. * */ const translations = { cz: { //gdpr Gdpr: "", //VOP Vop: "", //navbar NavText1: "Domů", NavText2: "Rozvoj podnikavosti", NavText3: "Workshopy a semináře", NavText4: "Moje první podnikání", NavText5: "Mám nápad! A co dál?", NavText6: "Kurzy a programy", NavText7: "Umělcem na volné noze", NavText8: "Startup podnikání", NavText9: "Startupový inkubátor / akcelerátor", NavText10: "Cesta sebepoznání", NavText11: "Moje práce snů", NavText12: "Emoce jako zpětná vazba", NavText13: "Návod na úspěšný život", NavText14: "Kontakt", //form FullNameLang: "Jméno a příjmení", OrganizationLang: "Organizace*", InterestLang: "Zajímá mě", TelephoneLang: "Telefon*", EmailLang: "Email*", MessageLang: "Zpráva*", SubmitBtn: "Odeslat", //contact HeadingText24: "Cesta k rovnováze z.s.", HeadingText24_1: "Cesta k
rovnováze z.s.", HeadingText25: "Rozvíjíme podnikavost", HeadingText26: "Podněcujeme k sebepoznání", HeadingText27: "Sdílíme a propojujeme", HeadingText25_clone: "Rozvíjíme podnikavost", HeadingText26_clone: "Podněcujeme k sebepoznání", HeadingText27_clone: "Sdílíme a propojujeme", HeadingText28: "Jan Adam Plaček Köhle", HeadingText28_1: "Renata Plačková Köhle", HeadingText28_2: "předseda spolku", HeadingText28_3: "administrativa", HeadingText29: "Email: placekjan@seznam.cz", HeadingText30: "tel: +420 731 552 258", HeadingText30_1: "tel: +420 737 077 600", //links LinkText1: "Odkaz na web", //buttons ButtonText1: "Mám zájem", ButtonText1_1: "Mám zájem", ButtonText1_2: "Mám zájem", ButtonText1_3: "Mám zájem", ButtonText1_4: "Mám zájem", ButtonText1_5: "Mám zájem", ButtonText1_6: "Mám zájem", ButtonText1_7: "Mám zájem", ButtonText1_8: "Mám zájem", ButtonText1_9: "Mám zájem", //headings first page HeadingText1: "Cesta k rovnováze v moderním vzdělávání", HeadingText2: "Klíčové oblasti:", HeadingText3: "Proč je to pro školy důležité", HeadingText4: "Společně vytváříme prostředí, kde se vzdělávání stává cestou k rovnováze mezi poznáním a praxí.", HeadingText5: "Inspirace pro pedagogy a zřizovatele", HeadingText6: "Naším společným cílem je připravit mladé lidi na život, kde se odváží snít, jednat a růst.", HeadingText7: "Rozvíjíme podnikavost", HeadingText8: "Naše workshopy a semináře", HeadingText9: "Naše kurzy a programy", HeadingText10: "Moje první podnikání", HeadingText11: "Inspirativní workshop", HeadingText12: "Mám nápad! A co dál?", HeadingText13: "Inspirativní workshop", HeadingText14: "Mám nápad! A co dál? 2", HeadingText15: "Inspirativní workshop", HeadingText16: "Mám nápad! A co dál? 3", HeadingText17: "Inspirativní workshop", HeadingText18: "Umělcem na volné noze", HeadingText19: "Praktický kurz", HeadingText20: "Startup podnikání", HeadingText21: "Kroužek", HeadingText22: "Startupový inkubátor / akcelerátor", HeadingText23: "Program", //content first page ContentText1: "Dnešní svět klade na mladé lidi stále větší nároky. Vedle tradičních znalostí potřebují i schopnost přemýšlet kreativně, jednat podnikavě a porozumět sami sobě. Přinášíme ucelený přístup, který propojuje rozvoj podnikavosti, sebepoznání a praktických dovedností. Naše programy pomáhají žákům a studentům najít jejich cestu k úspěchu a spokojenosti v rychle se měnícím světě.", ContentText2: " • Podnikavost jako nástroj seberealizace
• Sebepoznání jako základ životních rozhodnutí
• Praktickédovednosti pro budoucnost", ContentText3: "Vzdělávání již dávno není jen o předávání faktů. Školy stojí před výzvou připravit žáky na životní realitu, kde se prolínají profesní výzvy, osobní růst a společenská odpovědnost. Naše workshopy a kurzy, jako Moje první podnikání, Mám nápad! A co dál? nebo Moje práce snů, nabízejí učitelům nástroje, jak žákům pomoci:", ContentText4: "• Objevit jejich silné stránky a talenty.
• Rozvíjet kritické myšlení a iniciativu.
• Překonat strach z neznámého a budovat zdravé sebevědomí.", ContentText5: "Naše nabídka workshopů je určena učitelům, ředitelům a pracovníkům školských odborů, kteří hledají způsoby, jak obohatit výuku o prvky podnikavosti a osobního rozvoje. Chceme vám představit:", ContentText6: "• Konkrétní workshopy a programy, které můžete zařadit do výuky.
• Metodiky, jež žákům pomohou propojit teorii s praxí.
• Způsoby, jak pracovat s osobním rozvojem žáků.", ContentText7: "„Kdo je podnikatel? Je to člověk, který má vrozené, ale i vychované schopnosti jednat iniciativně, odpovědně a přeměňovat myšlenky ve skutek!
Tomáš Baťa", ContentText8: "• Moje první podnikání
• Mám nápad! A co dál?", ContentText9: "• Umělcem na volné noze
• Startup podnikání
• Startupový akcelerátor", ContentText10: "Seznamujeme s klíčovými momenty rozjezdu podnikání – motivací, cílem, překážkami a možnostmi. Žáci si zvědomují tato témata při práci na svých vlastních nápadech na podnikání. Pro vizualizaci používáme naši unikátní metodiku.", ContentText11: "Cíl: inspirovat k podnikání jako způsobu seberealizace.
Délka: 3 vyučovací hodiny.
Cílovka: žáci ZŠ (8. a 9. třída) a SŠ.", ContentText12: 'Odkaz na web', ContentText13: "Jak poznáme, jestli náš nápad stojí zato, abychom do něj vkládali energii? A pokud máme nápadů víc, tak jak vybrat ten pravý? Na workshopu se naučíme, jak s nápady pracovat, vyhodnocovat je a dotahovat až do konce.", ContentText14: "Cíl: naučit se jak (ne)realizovat své nápady.
Délka: 2,5 hodiny.
Cílovka: SŠ, VŠ, veřejnost.", ContentText15: "V navazujícím workshopu ověříme, jestli lze náš nápad realizovat jako byznys. Podíváme, kdo jsou naši potenciální zákazníci a ověříme, co je trápí a s čím jim můžeme pomoci. Zároveň zjistíme, jestli máme nějakou konkurenci a jak vypadá její nabídka.", ContentText16: "Cíl: vytvořit z nápadu fungující byznys model.
Délka: 2,5 hodiny.
Cílovka: SŠ, VŠ, veřejnost.", ContentText17: "Na základě ověřeného byznys modelu z předešlého workshopu sestavíme celý byznys plán. Vydefinujeme náš produkt/službu, jeho unikátní výhody, marketingové a distribuční kanály a spočítáme si naše příjmy a výdaje.", ContentText18: "Cíl: sestavit kompletní byznys plán.
Délka: 2,5 hodiny.
Cílovka: SŠ, VŠ, veřejnost.", ContentText19: "Práce na volné noze a svobodná tvorba je snem mnoha studentů umění. Jak ale uchopit témata jako je tvorba portfolia, cenotvorba, propagace, networking a práce s příležitostmi? V našem kurzu získáte odpovědi.", ContentText20: "Cíl: naučit se, jak se uživit uměleckou tvorbou.
Délka: 5 dvouhodinových workshopů.
Cílovka: studenti uměleckých škol.", ContentText21: "Startupové podnikání je způsob, jak vybudovat úspěšný byznys rychle, bez slepých uliček a zbytečných nákladů. Představuje propracovanou metodiku, která provede hravou formou žáky a studenty, krok za krokem, od nápadu až k platícím zákazníkům.", ContentText22: "Cíl: naučit se, jak úspěšně realizovat podnikatelský záměr.
Délka: září –červen, pravidelná týdenní setkání,na cca 1,5 hodiny.
Cílovka: žáci ZŠ (8. a 9. třídy), studenti SŠ.", ContentText23: "Co je to elevator pitch? A proč ověřovat a jak spočítat finanční plán? Na tyto a další otázky přináší odpověď náš program na podporu začínajících podnikatelů. Provádí všemi důležitými aspekty podnikání a pomáhá tak zvýšit počet a úspěšnost zájemců o podnikání.", ContentText24: "Cíl: zvýšit počet podnikatelů ve městě, regionu apod.
Délka: 10-ti měsíční program složený z workshopů a individuálního mentoringu.
Cílovka: veřejnost.", //headings second page HeadingText31: "Podněcujeme k sebepoznání", HeadingText32: "Naše workshopy a semináře", HeadingText33: "Moje práce snů", HeadingText34: "Interaktivní workshop", HeadingText35: "Emoce jako zpětná vazba", HeadingText36: "Transformační wellbeing", HeadingText37: "Návod na úspěšný život", HeadingText38: "Transformační workshop", //content second page ContentText25: "„Než z nevědomého učiníte vědomé, bude vám to řídit život a vy tomu budete říkat osud.“
Carl Gustav Jung", ContentText26: " • Moje práce snů
• Emoce jako zpětná vazba
• Návod na úspěšný život
", ContentText27: "Najít si práci, která nás bude uspokojovat je snem nás všech. Jak zjistíme, na co se hodíme a v čem můžeme uspět? Základním předpokladem je zmapování našich zájmů, vlastností, schopností a hodnot. Naše unikátní metodika zajistí vizualizaci a propojení našeho osobního potenciálu s konkrétní profesí.", ContentText28: "Cíl: přijít si na to, na co se hodím.
Délka: celodenní workshop.
Cílovka: žáci 9. tříd ZŠ a gymnázií.", ContentText29: "Emoce nás provází celý život. Vyjadřují naše pocity, které by jinak zůstaly skryty. Zvykli jsme si je rozdělovat na pozitivní a negativní. Užíváme si ty pozitivní a těch negativních bychom se nejraději zbavili. Ale co když nám i ty negativní emoce mohou být něčím užitečné?", ContentText30: "Cíl: naučit se pracovat s negativními emocemi a zlepšit tak své vztahy.
Délka: 1,5 hodiny.
Cílovka: žáci ZŠ a SŠ, pedagogové.", ContentText31: "Všichni sníme o šťastném a úspěšném životě! Ale co vlastně znamená úspěch? Pro někoho je to finanční hojnost, jiný touží po harmonické rodině a další hledá práci, která ho bude naplňovat. Každý máme svůj vlastní sen – a my vám ukážeme, jak na něj dosáhnout!", ContentText32: "Cíl: naučit se, jak využít naplno svůj osobní potenciál, v pracovním i soukromém životě.
Délka: celodenní skupinový workshop.
Cílovka: SŠ, VŠ, veřejnost.", }, en: { //gdpr Gdpr: "", //VOP Vop: "", //navbar NavText1: "Home", NavText2: "Developing Entrepreneurship", NavText3: "Workshops and Seminars", NavText4: "My First Business", NavText5: "I Have an Idea! What’s Next?", NavText6: "Courses and Programs", NavText7: "Freelance Artist", NavText8: "Startup Entrepreneurship", NavText9: "Startup Accelerator", NavText10: "Journey of Self-Discovery", NavText11: "My Dream Job", NavText12: "Emotions as Feedback", NavText13: "Guide to a Successful Life", NavText14: "Contact", //form FullNameLang: "Full Name", OrganizationLang: "Organization*", InterestLang: "I am interested in", TelephoneLang: "Telephone*", EmailLang: "Email*", MessageLang: "Message*", SubmitBtn: "Submit", //contact HeadingText24: "Cesta k rovnováze z.s.", HeadingText24_1: "Cesta k
rovnováze z.s.", HeadingText25: "We Develop Entrepreneurship", HeadingText26: "We Encourage Self-Discovery", HeadingText27: "We Share and Connect", HeadingText25_clone: "We Develop Entrepreneurship", HeadingText26_clone: "We Encourage Self-Discovery", HeadingText27_clone: "We Share and Connect", HeadingText28: "Jan Adam Plaček Köhle", HeadingText28_1: "Renata Plačková Köhle", HeadingText28_2: "chairman", HeadingText28_3: "administration", HeadingText29: "email: placekjan@seznam.cz", HeadingText30: "tel: +420 731 552 258", HeadingText30_1: "tel: +420 737 077 600", //links LinkText1: "Link to website", //buttons ButtonText1: "Request", ButtonText1_1: "Request", ButtonText1_2: "Request", ButtonText1_3: "Request", ButtonText1_4: "Request", ButtonText1_5: "Request", ButtonText1_6: "Request", ButtonText1_7: "Request", ButtonText1_8: "Request", ButtonText1_9: "Request", //headings first page HeadingText1: "Journey to Balance in Modern Education", HeadingText2: "Key Areas:", HeadingText3: "Why is this important for schools", HeadingText4: "Together, we create an environment where education becomes a path to balance between knowledge and practice.", HeadingText5: "Inspiration for educators and founders", HeadingText6: "Our common goal is to prepare young people for a life where they dare to dream, act, and grow.", HeadingText7: "We develop entrepreneurship", HeadingText8: "Our workshops and seminars", HeadingText9: "Our courses and programs", HeadingText10: "My first business", HeadingText11: "Inspirational workshop", HeadingText12: "I have an idea! What's next?", HeadingText13: "Inspirational workshop", HeadingText14: "I have an idea! What's next? 2", HeadingText15: "Inspirational workshop", HeadingText16: "I have an idea! What's next? 3", HeadingText17: "Inspirational workshop", HeadingText18: "Freelance artist", HeadingText19: "Practical course", HeadingText20: "Startup entrepreneurship", HeadingText21: "Club", HeadingText22: "Startup incubator / accelerator", HeadingText23: "Program", //content first page ContentText1: "Today’s world places ever-growing demands on young people. Alongside traditional knowledge, they also need the ability to think creatively, act entrepreneurially, and understand themselves. We offer a comprehensive approach that combines the development of entrepreneurship, self-discovery, and practical skills. Our programs help pupils and students find their path to success and fulfillment in a rapidly changing world.", ContentText2: " • Entrepreneurship as a Tool for Self-Realization
• Self-Discovery as the Foundation for Life Decisions
• Practical Skills for the Future", ContentText3: "Education is no longer just about imparting facts. Schools face the challenge of preparing students for a life where professional challenges, personal growth, and social responsibility intersect. Our workshops and courses, such as My First Business, I Have an Idea! What's Next? or My Dream Job, offer teachers tools to help students:", ContentText4: "• Discover their strengths and talents.
• Develop critical thinking and initiative.
• Overcome the fear of the unknown and build healthy self-confidence.", ContentText5: "Our workshop offerings are designed for teachers, principals, and school department staff who are looking for ways to enrich teaching with elements of entrepreneurship and personal development. We want to introduce you to:", ContentText6: "• Specific workshops and programs that you can incorporate into teaching.
• Methodologies that help students connect theory with practice.
• Ways to work on students' personal development.", ContentText7: "“Who is an entrepreneur? It is a person who has innate, but also nurtured abilities to act initiative, responsibly, and turn ideas into action!
Tomáš Baťa", ContentText8: "• My First Business
• I Have an Idea! What's Next?", ContentText9: "• Freelance Artist
• Startup Entrepreneurship
• Startup Accelerator", ContentText10: "We introduce the key moments of starting a business – motivation, goals, obstacles, and opportunities. Students become aware of these topics while working on their own business ideas. For visualization, we use our unique methodology.", ContentText11: "Goal: to inspire entrepreneurship as a means of self-realization.
Duration: 3 teaching hours.
Target group: primary school students (8th and 9th grade) and secondary school students.", ContentText12: 'Link to the website', ContentText13: "How do we know if our idea is worth investing energy into? And if we have multiple ideas, how do we choose the right one? In the workshop, we will learn how to work with ideas, evaluate them, and see them through to completion.", ContentText14: "Goal: to learn how to (not) implement your ideas.
Duration: 2.5 hours.
Target group: secondary school students, university students, public.", ContentText15: "In the follow-up workshop, we will check if our idea can be realized as a business. We will look at who our potential customers are and verify what troubles them and how we can help. At the same time, we will find out if we have any competition and what their offer looks like.", ContentText16: "Goal: to create a functional business model from the idea.
Duration: 2.5 hours.
Target group: secondary school students, university students, public.", ContentText17: "Based on the verified business model from the previous workshop, we will assemble the entire business plan. We will define our product/service, its unique advantages, marketing and distribution channels, and calculate our income and expenses.", ContentText18: "Goal: to assemble a complete business plan.
Duration: 2.5 hours.
Target group: secondary school students, university students, public.", ContentText19: "Freelance work and free creation is the dream of many art students. But how to tackle topics such as portfolio creation, pricing, promotion, networking, and working with opportunities? In our course, you will get answers.", ContentText20: "Goal: to learn how to make a living from artistic creation.
Duration: 5 two-hour workshops.
Target group: art school students.", ContentText21: "Startup entrepreneurship is a way to build a successful business quickly, without dead ends and unnecessary costs. It represents a well-developed methodology that guides students step by step, in a playful way, from idea to paying customers.", ContentText22: "Goal: to learn how to successfully implement a business plan.
Duration: September to June, regular weekly meetings, approximately 1.5 hours each.
Target group: primary school students (8th and 9th grades), secondary school students.", ContentText23: "What is an elevator pitch? And why verify and how to calculate a financial plan? Our program to support budding entrepreneurs answers these and other questions. It guides through all important aspects of entrepreneurship and thus helps to increase the number and success of those interested in entrepreneurship.", ContentText24: "Goal: to increase the number of entrepreneurs in the city, region, etc.
Duration: 10-month program consisting of workshops and individual mentoring.
Target group: public.", //headings second page HeadingText31: "We encourage self-discovery", HeadingText32: "Our workshops and seminars", HeadingText33: "My Dream Job", HeadingText34: "Interactive workshop", HeadingText35: "Emotions as Feedback", HeadingText36: "Transformational wellbeing", HeadingText37: "A Guide to a Successful Life", HeadingText38: "Transformational workshop", //content second page ContentText25: "„Until you make the unconscious conscious, it will direct your life, and you will call it fate.“
Carl Gustav Jung", ContentText26: " • My Dream Job
• Emotions as Feedback
• A Guide to a Successful Life
", ContentText27: "Finding a job that satisfies us is a dream for all of us. How do we figure out what we’re suited for and where we can succeed? The basic prerequisite is mapping our interests, traits, abilities, and values. Our unique methodology ensures the visualization and connection of our personal potential with a specific profession.", ContentText28: "Goal: discover what I’m suited for.
Duration: full-day workshop
Target group: 9th-grade elementary school students and high school students.", ContentText29: "Emotions accompany us throughout our lives. They express our feelings that would otherwise remain hidden. We’ve grown accustomed to dividing them into positive and negative. We enjoy the positive ones and would prefer to get rid of the negative ones. But what if even negative emotions can be useful in some way?", ContentText30: "Goal: learn to work with negative emotions and improve relationships..
Duration:1.5 hours.
Target group: elementary and high school students, educators.", ContentText31: "We all dream of a happy and successful life! But what does success actually mean? For some, it’s financial abundance; others long for a harmonious family, while some seek fulfilling work. Each of us has our own dream – and we’ll show you how to achieve it!", ContentText32: "Goal: learn how to fully utilize your personal potential in both professional and personal life.
Duration: full-day group workshop.
Target group: high school students, university students, general public.", }, }; function setLanguage(lang) { // Save the selected language in localStorage localStorage.setItem("language", lang); // Update the text content of elements const elementsToTranslate = { //gdpr Gdpr: document.getElementById("gdpr"), //VOP Vop: document.getElementById("vop"), //navbar NavText1: document.getElementById("navText1"), NavText2: document.getElementById("navText2"), NavText3: document.getElementById("navText3"), NavText4: document.getElementById("navText4"), NavText5: document.getElementById("navText5"), NavText6: document.getElementById("navText6"), NavText7: document.getElementById("navText7"), NavText8: document.getElementById("navText8"), NavText9: document.getElementById("navText9"), NavText10: document.getElementById("navText10"), NavText11: document.getElementById("navText11"), NavText12: document.getElementById("navText12"), NavText13: document.getElementById("navText13"), NavText14: document.getElementById("navText14"), //form FullNameLang: document.getElementById("fullNameLang"), OrganizationLang: document.getElementById("organizationLang"), InterestLang: document.getElementById("interestLang"), TelephoneLang: document.getElementById("telephoneLang"), EmailLang: document.getElementById("emailLang"), MessageLang: document.getElementById("messageLang"), SubmitBtn: document.getElementById("submitBtn"), //contact HeadingText24: document.getElementById("headingText24"), HeadingText24_1: document.getElementById("headingText24_1"), HeadingText25: document.getElementById("headingText25"), HeadingText26: document.getElementById("headingText26"), HeadingText27: document.getElementById("headingText27"), HeadingText25_clone: document.getElementById("headingText25_clone"), HeadingText26_clone: document.getElementById("headingText26_clone"), HeadingText27_clone: document.getElementById("headingText27_clone"), HeadingText28: document.getElementById("headingText28"), HeadingText28_1: document.getElementById("headingText28_1"), HeadingText28_2: document.getElementById("headingText28_2"), HeadingText28_3: document.getElementById("headingText28_3"), HeadingText29: document.getElementById("headingText29"), HeadingText30: document.getElementById("headingText30"), HeadingText30_1: document.getElementById("headingText30_1"), //links LinkText1: document.getElementById("linkText1"), //buttons ButtonText1: document.getElementById("buttonText1"), ButtonText1_1: document.getElementById("buttonText1_1"), ButtonText1_2: document.getElementById("buttonText1_2"), ButtonText1_3: document.getElementById("buttonText1_3"), ButtonText1_4: document.getElementById("buttonText1_4"), ButtonText1_5: document.getElementById("buttonText1_5"), ButtonText1_6: document.getElementById("buttonText1_6"), ButtonText1_7: document.getElementById("buttonText1_7"), ButtonText1_8: document.getElementById("buttonText1_8"), ButtonText1_9: document.getElementById("buttonText1_9"), //headings first page HeadingText1: document.getElementById("headingText1"), HeadingText2: document.getElementById("headingText2"), HeadingText3: document.getElementById("headingText3"), HeadingText4: document.getElementById("headingText4"), HeadingText5: document.getElementById("headingText5"), HeadingText6: document.getElementById("headingText6"), HeadingText7: document.getElementById("headingText7"), HeadingText8: document.getElementById("headingText8"), HeadingText9: document.getElementById("headingText9"), HeadingText10: document.getElementById("headingText10"), HeadingText11: document.getElementById("headingText11"), HeadingText12: document.getElementById("headingText12"), HeadingText13: document.getElementById("headingText13"), HeadingText14: document.getElementById("headingText14"), HeadingText15: document.getElementById("headingText15"), HeadingText16: document.getElementById("headingText16"), HeadingText17: document.getElementById("headingText17"), HeadingText18: document.getElementById("headingText18"), HeadingText19: document.getElementById("headingText19"), HeadingText20: document.getElementById("headingText20"), HeadingText21: document.getElementById("headingText21"), HeadingText22: document.getElementById("headingText22"), HeadingText23: document.getElementById("headingText23"), //content first page ContentText1: document.getElementById("contentText1"), ContentText2: document.getElementById("contentText2"), ContentText3: document.getElementById("contentText3"), ContentText4: document.getElementById("contentText4"), ContentText5: document.getElementById("contentText5"), ContentText6: document.getElementById("contentText6"), ContentText7: document.getElementById("contentText7"), ContentText8: document.getElementById("contentText8"), ContentText9: document.getElementById("contentText9"), ContentText10: document.getElementById("contentText10"), ContentText11: document.getElementById("contentText11"), ContentText12: document.getElementById("contentText12"), ContentText13: document.getElementById("contentText13"), ContentText14: document.getElementById("contentText14"), ContentText15: document.getElementById("contentText15"), ContentText16: document.getElementById("contentText16"), ContentText17: document.getElementById("contentText17"), ContentText18: document.getElementById("contentText18"), ContentText19: document.getElementById("contentText19"), ContentText20: document.getElementById("contentText20"), ContentText21: document.getElementById("contentText21"), ContentText22: document.getElementById("contentText22"), ContentText23: document.getElementById("contentText23"), ContentText24: document.getElementById("contentText24"), //headings second page HeadingText24: document.getElementById("headingText24"), HeadingText25: document.getElementById("headingText25"), HeadingText26: document.getElementById("headingText26"), HeadingText27: document.getElementById("headingText27"), HeadingText28: document.getElementById("headingText28"), HeadingText29: document.getElementById("headingText29"), HeadingText30: document.getElementById("headingText30"), HeadingText31: document.getElementById("headingText31"), HeadingText32: document.getElementById("headingText32"), HeadingText33: document.getElementById("headingText33"), HeadingText34: document.getElementById("headingText34"), HeadingText35: document.getElementById("headingText35"), HeadingText36: document.getElementById("headingText36"), HeadingText37: document.getElementById("headingText37"), HeadingText38: document.getElementById("headingText38"), //content second page ContentText25: document.getElementById("contentText25"), ContentText26: document.getElementById("contentText26"), ContentText27: document.getElementById("contentText27"), ContentText28: document.getElementById("contentText28"), ContentText29: document.getElementById("contentText29"), ContentText30: document.getElementById("contentText30"), ContentText31: document.getElementById("contentText31"), ContentText32: document.getElementById("contentText32"), }; for (const key in elementsToTranslate) { if (elementsToTranslate[key]) { elementsToTranslate[key].innerHTML = translations[lang][key]; } } // Show the content after translation document.body.classList.remove("hidden-until-translated"); } // Load the saved language on page load document.addEventListener("DOMContentLoaded", () => { const savedLanguage = localStorage.getItem("language") || "cz"; // Default to Czech setLanguage(savedLanguage); // Add event listeners for language switching document .getElementById("cz-flag") .addEventListener("click", () => setLanguage("cz")); document .getElementById("en-flag") .addEventListener("click", () => setLanguage("en")); });