// The active locale var locale = "en"; // We can have as many locales here as we want, // and use any locales we want. We have English // and Arabic as locales here as examples. const translations = { en: { "h1-home": "Organic Juice Innovation", "h1-home-text": "Imagine a natural and refreshing organic juice, made from fruit that could suppress your appetite! A snack you could grab on the go, which would satisfy your thirst and hunger! Well, that is exactly what we have designed and developed. Discover the delicious taste of our brand-new fruit juice.", "h2-home": "Transforming the Beverage Industry", "h2-home-text": "Since this drink is a natural appetite-suppressant, it will be assigned its own unique fruit juice industry category - differentiating it from the current products on the market. Rather than blending vegetables with different juice bases, or combine plant based juice combinations or milk alternatives with fruit, we will stand out as unique within the organic juice beverage industry. We are excited to be introducing our new organic juice to the market very soon!", "h3-home": "A Recipe for Organic Juice Success", "h3-home-text": `We have been hard at work developing recipes and testing out concepts and combinations. We are finally ready to scale up this concept and start manufacturing our product. While we could have chosen to cut corners and partner up with a manufacturer to produce a simple organic recipe, and added a label to their product, we strongly believe in introducing something innovative to the market. We are believe we will be pushing beverage industry boundaries by bringing our idea to life! By achieving this, we will provide ourselves with an edge over competitors. By focusing on providing an organic juice with the unique solution of combating hunger and thirst, whilst minimizing our carbon footprint. We are green, fresh and delicious! `, "h4-home": "Overcoming Development & Design Challenges ", "h4-home-text": `Launching a new business and product in any industry can be challenging, but especially within the food and beverage industry. This market is one of the most crowded, with new products introduced every week. Plus, the global pandemic has only increased the worldwide demand for health and well-being products. Our biggest challenge to date is finding a manufacture who has the capacity and experience to help us successfully launch this product. While we’re aware working with a start-up can often lead to reservations and doubts for manufacturers, you can rest assured that our team has invested precious time and resources into this product, to give our brand and business the best possible chance of success. The next step is getting your voice heard in this very noisy marketplace. Fortunately, we have a wealth of knowledge and industry experience that will empower us to effectively market our organic juice product. We are more than aware of the difficulties and financial restraints facing us at every turn. For instance, wholesalers charging a listing fee, or asking for a significant cut of the wholesale price. We are ready to negotiate and navigate these hurdles. Many start-ups do fail within the first year of business, due to inexperience. But this is where we excel. In addition, the volume of new products being launched can often overwhelm the consumer, and new products can be easily overlooked. Yet, with our unique selling point, being a natural appetite-suppressant, we know how to manage a successful product launch and directly reach our target market.`, "h1-about": "About Us", "h1-about-text": `As a family enterprise, we are committed to creating an organic drink that is new to the beverage industry and market but more importantly good for the mind, body, and soul. Hydrate and calm your appetite with our fresh and delicious organic drink. With the UK leaving the European Union, we have recently encountered a new set of challenges as a business. As a start-up we must invest both time and resources into launching our product into the beverage industry. In response to this challenge, we have already established a location in Barcelona, Spain to maintain a competitive advantage and we will continue to develop and research to expand our recipes and organic drink ideas. As a family business, we each have a unique set of skills and experience to bring to the table. Some members of our team have experience in technology and education, while some are still studying. Others are multi-lingual and highly creative. We all enjoy immersing ourselves in different cultures, cuisines, and music. On a personal note, we continue to work full-time while pursing our passion for our organic drink brand and will attempt to balance both our full-time careers with our start-up business, until we’re financially able to invest all our time into this project.`, "h2-about": "Reducing Our Carbon Footprint", "h2-about-text": "We are passionate about the environment and so strive to reduce our carbon footprint in all we do. Our approach to business is that of green manufacturing and this is the type of manufacturer we’d love to work with. We aim to be carbon footprint positive with each sale we make.", "h3-about": "A Healthy Organic Drink for The Whole Family ", "h3-about-text": `Our organic drink is made with natural ingredients and is free from preservatives and artificial colours. Great news for health-conscious parents! We have also developed the recipe to be significantly lower in calories than our competitors. Sugar is of course a concern for most parents these days, and so we have developed a healthy organic drink with fruit juice that doesn’t have additives or added sugar. You and your children will be able to indulge in our organic drink with complete peace of mind that it is healthy and natural. If you wish to be kept informed when the drink is available, please leave your details. We may contact you when we release the product.`, "home-meta-keywords": "Organic juice, Appetite-suppressant, Beverage industry", "home-meta-description": "Discover the delicious taste of a brand-new organic juice, made with 100% natural ingredients. An natural organic appetite-suppressant it’s new to the beverage industry.", "about-meta-keywords": "Beverage industry, Carbon footprint, organic drink", "about-meta-description": "We take our carbon footprint seriously and work hard to provide an innovative organic drink that not only tastes delicious but is an appetite-suppressant.", "home-title": "Organic Juice | Natural Appetite-Suppressant", "about-title": "About Us | Discover Our Natural Organic Drink", }, de: { "h1-home": "Bio-Saft-Innovation", "h1-home-text": "Stellen Sie sich einen natürlichen und erfrischenden Bio-Saft vor, der aus Obst hergestellt wird, das ihren Appetit zügeln kann! Ein Snack für unterwegs, der Ihren Durst und Ihren Hunger stillt! Genau das haben wir designed und entwickelt. Entdecken Sie den herrlichen Geschmack unseres brandneuen Fruchtsaftes. ", "h2-home": "Verwandlung der Getränkeindustrie", "h2-home-text": "Da dieses Getränk ein natürlicher Appetithemmer ist, wird es seine eigene einzigartige Kategorie in der Fruchtsaftindustrie bekommen – und sich so von den aktuell auf dem Markt erhältlichen Produkten unterscheiden. Statt Gemüse mit verschiedenen Grundsäften zu mischen bzw. Pflanzensäfte oder Milchalternativen mit Früchten zu kombinieren, stechen wir mit unserem einzigartigen Konzept aus der Masse der Bio-Fruchtsäfte der Getränkeindustrie heraus. Wir freuen uns darauf, unseren neuen Bio-Fruchtsaft bald auf den Markt zu bringen!", "h3-home": "Ein Bio-Fruchtsaft-Erfolgsrezept ", "h3-home-text": `Wir haben hart an der Entwicklung von Rezepten gearbeitet und Konzepte und Kombinationen getestet. Endlich sind wir bereit, dieses Konzept aufzuskalieren und mit der Produktion unseres Produkts zu beginnen. Wir hätten natürlich den einfachsten Weg nehmen und uns mit einem Hersteller zusammentun können, um ein einfaches Bio-Rezept zu produzieren. Dann hätten wir nur ein Etikett auf ihr Produkt kleben müssen. Doch wir möchten etwas Neues, Innovatives auf den Markt bringen. Wir glauben, dass wir die Möglichkeiten der Getränkeindustrie ausreizen können, indem wir unsere Idee umsetzen! Dadurch erhalten wir einen Vorteil gegenüber unserem Wettbewerb. Unser Fokus ist die Bereitstellung eines Bio-Saftes, der auf einzigartige Weise gegen Hunger und Durst hilft und dabei unsere CO2-Bilanz niedrig hält. Wir sind grün, frisch und lecker!`, "h4-home": "Herausforderungen bei Entwicklung und Design überwinden ", "h4-home-text": `Die Gründung eines neuen Unternehmens oder die Einführung eines neuen Produkts können in jedem Industriezweig eine Herausforderung sein; dies gilt insbesondere für die Nahrungsmittel- und Getränkeindustrie. Dieser Markt ist bereits übervoll und immer noch werden wöchentlich neue Produkte vorgestellt. Außerdem hat die globale Pandemie den weltweiten Bedarf an Gesundheits- und Heilprodukten noch gesteigert. Unsere bisher größte Herausforderung ist die Suche nach einem Hersteller, der die Kapazität und Erfahrung hat, um uns bei der erfolgreichen Markteinführung des Produkts zu unterstützen. Wir wissen, dass die Zusammenarbeit mit Start-ups oftmals Zurückhaltung und Zweifel bei Herstellern weckt. Sie können jedoch sicher sein, dass unser Team kostbare Zeit und Ressourcen in dieses Produkt gesteckt hat, damit unsere Marke und unser Unternehmen die bestmöglichen Erfolgschancen haben. Im nächsten Schritt werden wir uns auf diesem lauten Markt Gehör verschaffen. Glücklicherweise verfügen wir über einen großen Wissensschatz und die Branchenerfahrung mit denen wir unseren Bio-Saft effektiv vermarkten können. Wir sind uns sehr wohl der Schwierigkeiten und finanziellen Einschränkungen bewusst, denen wir überall begegnen. Beispielsweise berechnen uns Großhändler eine Angebotsgebühr oder erwarten einen erheblichen Rabatt auf den Großhandelspreis. Wir sind zu Verhandlungen bereit und werden auch diese Hürde nehmen. Aus Mangel an Erfahrung halten sich die wenigsten Start-ups länger als ein Jahr. Doch genau die Erfahrung ist unsere Stärke. Außerdem verwirrt oftmals die Vielzahl an neuen Produkten die Konsumenten und so werden neue Produkte leicht übersehen. Mit unserem Alleinstellungsmerkmal als natürlicher Appetithemmer können wir unser Produkt erfolgreich auf dem Markt einführen und unseren Zielmarkt direkt erreichen.`, "h1-about": "Über uns ", "h1-about-text": `Als Familienunternehmen wollen wir ein Bio-Getränk entwickeln, das es so in der Getränkeindustrie und auf dem Markt noch nicht gegeben hat. Noch wichtiger für uns ist jedoch, dass es gut für den Geist, den Körper und die Seele ist. Helfen Sie Ihrem Flüssigkeitshaushalt und stillen Sie Ihren Appetit mit unserem frischen und leckeren Bio-Getränk. Durch den Austritt des Vereinigten Königreichs aus der EU mussten wir uns als Unternehmen neuen Herausforderungen stellen. Als Start-up mussten wir sowohl Zeit als auch Ressourcen in die Markteinführung unseres Produkts in der Getränkeindustrie investieren. Um dieser Herausforderung zu begegnen, haben wir bereits einen Standort in Barcelona, Spanien, eröffnet. So können wir unseren Wettbewerbsvorteil erhalten und weiterhin an unseren Rezepten und Ideen für Bio-Getränke arbeiten. Als Familienunternehmen besitzen wir eine einzigartige Kombination von Fähigkeiten und Erfahrungswerten, die wir gewinnbringend einsetzen können. Einige Teammitglieder haben Erfahrung im Bereich Technik und Bildung, während andere noch studieren. Wieder andere beherrschen mehrere Sprachen und sind äußerst kreativ. Wir alle genießen es, uns verschiedenen Kulturen, Küchen und Musik hinzugeben. Hier noch ein Hinweis in eigener Sache: Wir arbeiten Vollzeit, während wir unserer Leidenschaft für unsere Bio-Getränke-Marke nachgehen. Wir werden versuchen, unsere Arbeit und unser Start-up-Unternehmen unter einen Hut zu bringen, bis wir es uns finanziell erlauben können, unsere gesamte Zeit in dieses Projekt zu investieren.`, "h2-about": "Verbesserung unserer ", "h2-about-text": "Wir setzen uns für die Umwelt ein und arbeiten deshalb daran, unsere CO2-Bilanz zu verbessern. Wir wollen grün produzieren und suchen deshalb nach einem gleichgesinnten Produzenten für eine großartige Zusammenarbeit. Wir möchten unsere CO2-Bilanz mit jedem einzelnen verkauften Produkt verbessern.", "h3-about": "Ein gesundes Bio-Getränk für die ganze Familie", "h3-about-text": `Unser Bio-Getränk wird mit natürlichen Zutaten hergestellt und ganz ohne Konservierungsstoffe oder künstliche Farbstoffe. Das sind großartige Neuigkeiten für gesundheitsbewusste Eltern! Das von uns entwickelte Rezept hat auch wesentlich weniger Kalorien als die unserer Wettbewerber. Für die Eltern von heute ist Zucker natürlich ein großes Thema, weshalb das von uns entwickelte Bio-Getränk mit Fruchtsaft keinerlei Zusatzstoffe oder zugesetzten Zucker enthält. Sie und unsere Kinder können so mit gutem Gewissen unser gesundes und natürliches Bio-Getränk genießen. Wenn Sie informiert werden möchten, sobald das Getränk auf dem Markt ist, hinterlassen Sie bitte hier Ihre Kontaktdaten. Wir werden Sie dann kontaktieren, sobald das Produkt erhältlich ist. `, "home-meta-keywords": "Organic juice,Appetite-suppressant,Beverage industry", "home-meta-description": "Entdecken Sie den herrlichen Geschmack unseres brandneuen Bio-Saftes aus 100 % natürlichen Zutaten. Dieser natürliche Appetithemmer ist neu in der Getränkeindustrie.", "about-meta-keywords": "Beverage industry, Carbon footprint, organic drink", "about-meta-description": "Wir nehmen unsere CO2-Bilanz ernst und arbeiten hart daran, ein innovatives Bio-Getränk zu entwickeln, das nicht nur gut schmeckt, sondern auch ein Appetithemmer ist.", "home-title": "Bio-Saft | Natürlicher Appetithemmer", "about-title": "Über uns | Entdecken Sie unser natürliches Bio-Getränk", }, es: { "h1-home": "Innovación en zumos ecológicos", "h1-home-text": "¡Imagina un zumo ecológico, natural y refrescante, hecho de fruta capaz de quitarte el apetito! Un tentempié que puedas tomar sobre la marcha y que satisfaga tu sed y tu hambre. Pues eso es exactamente lo que hemos diseñado y desarrollado. Descubre el delicioso sabor de nuestro nuevo zumo de frutas.", "h2-home": "Transformando la Industria de las Bebidas", "h2-home-text": "Dado que esta bebida es un supresor natural del apetito, se le asignará una categoría propia y única en el sector de los zumos de frutas, lo que la diferenciará de los productos actuales del mercado. En lugar de mezclar verduras con diferentes bases de zumo, o de combinar mezclas de zumos a base de plantas o alternativas lácteas con fruta, nos diferenciaremos como únicos dentro de la industria de las bebidas de zumos ecológicos. Estamos entusiasmados con la idea de introducir nuestro nuevo zumo ecológico en el mercado muy pronto.", "h3-home": "Una Receta para un Zumo Ecológico Exitoso ", "h3-home-text": `Hemos trabajado duro desarrollando recetas y probando conceptos y combinaciones. Por fin estamos preparados para ampliar este concepto y empezar a fabricar nuestro producto. Aunque podríamos haber optado por recortar gastos y asociarnos con un fabricante para producir una simple receta ecológica y añadir una etiqueta a su producto, creemos firmemente en introducir algo innovador en el mercado. Estamos convencidos de que vamos a superar los límites de la industria de las bebidas al dar vida a nuestra idea. Al conseguirlo, obtendremos una ventaja sobre nuestros competidores. Al centrarnos en ofrecer un zumo ecológico con la exclusiva solución de combatir el hambre y la sed, al tiempo que minimizamos nuestra huella de carbono. ¡Somos verdes, frescos y deliciosos!`, "h4-home": "Superando Retos de Desarrollo y Diseño", "h4-home-text": `Lanzar un nuevo negocio y un nuevo producto en cualquier sector puede ser un reto, pero especialmente en la industria de las bebidas y la alimentación. Este mercado es uno de los más saturados, ya que cada semana aparecen nuevos productos. Además, la pandemia no ha hecho más que aumentar la demanda mundial de productos para la salud y el bienestar. Nuestro mayor reto hasta la fecha es encontrar un fabricante que tenga la capacidad y la experiencia necesarias para ayudarnos a lanzar con éxito este producto. Aunque somos conscientes de que trabajar con una empresa de nueva creación puede suscitar a menudo reservas y dudas en los fabricantes, puede estar seguro de que nuestro equipo ha invertido un tiempo y unos recursos muy valiosos en este producto, para dar a nuestra marca y a nuestro negocio las mejores posibilidades de éxito. El siguiente paso es conseguir que su voz se escuche en este mercado tan competitivo. Afortunadamente, contamos con un amplio conocimiento y experiencia en el sector que nos permitirá comercializar eficazmente nuestro zumo ecológico. Somos más que conscientes de las dificultades y limitaciones financieras a las que nos enfrentamos en cada momento. Como por ejemplo, los mayoristas que cobran una cuota de entrada, o que piden un recorte significativo del precio de venta al por mayor. Estamos preparados para negociar y sortear estos obstáculos. Muchas empresas de nueva creación fracasan durante el primer año de actividad, debido a la inexperiencia. Pero aquí es donde nosotros destacamos. Además, el volumen de nuevos productos que se lanzan al mercado puede a menudo abrumar al consumidor, y los nuevos productos pueden ser fácilmente pasados por alto. Sin embargo, con nuestro argumento de venta diferencial, que es un supresor del apetito natural, sabemos cómo gestionar el lanzamiento de un producto con éxito y llegar directamente a nuestro mercado objetivo.`, "h1-about": "Sobre Nosotros ", "h1-about-text": `Como empresa familiar, estamos comprometidos con la creación de una bebida ecológica que sea nueva en el mercado y en la industria de las bebidas, pero sobre todo que sea buena para la mente, el cuerpo y el alma. Hidrátate y calma tu apetito con nuestra refrescante y deliciosa bebida ecológica. Con la salida del Reino Unido de la Unión Europea, últimamente nos hemos encontrado con una nueva serie de retos como empresa. Como empresa emergente, debemos invertir tiempo y recursos para lanzar nuestro producto en la industria de las bebidas. En respuesta a este reto, ya hemos establecido una sede en Barcelona, España, para mantener una ventaja competitiva y seguiremos desarrollando e investigando para ampliar nuestras recetas e ideas de bebidas ecológicas. Como empresa familiar, cada uno de nosotros tiene una serie de habilidades y experiencia únicas que aportar. Algunos miembros de nuestro equipo tienen experiencia en tecnología y educación, mientras que otros aún están estudiando. Otros son políglotas y muy creativos. A todos nos gusta sumergirnos en diferentes culturas, cocinas y música. A título personal, seguimos trabajando a tiempo completo mientras perseguimos nuestra pasión por nuestra marca de bebidas ecológicas e intentaremos equilibrar nuestras carreras a tiempo completo con nuestra empresa emergente, hasta que podamos invertir todo nuestro tiempo en este proyecto.`, "h2-about": "Reducimos Nuestra Huella de Carbono", "h2-about-text": "Nos apasiona el medio ambiente y por eso nos esforzamos por reducir nuestra huella de carbono en todo lo que hacemos. Nuestro enfoque empresarial es el de la fabricación ecológica, y este es el tipo de fabricante con el que nos encantaría trabajar. Nuestro objetivo es tener una huella de carbono positiva con cada venta que realizamos", "h3-about": "Una Bebida Ecológica Saludable para Toda la Familia", "h3-about-text": `Nuestra bebida ecológica está elaborada con ingredientes naturales y no contiene conservantes ni colorantes artificiales. Una gran noticia para los padres preocupados por la salud. También hemos desarrollado la receta para que tenga muchas menos calorías que nuestros competidores. El azúcar es, por supuesto, una preocupación para la mayoría de los padres de hoy en día, por lo que hemos desarrollado una bebida ecológica saludable con zumo de frutas que no tiene aditivos ni azúcares añadidos. Tanto tú como tus hijos podréis disfrutar de nuestra bebida ecológica con la total tranquilidad de que es sana y natural. Si deseas que te mantengamos informado cuando la bebida esté disponible, déjanos tus datos para que podamos ponernos en contacto contigo cuando salga a la venta.`, "home-meta-keywords": "Zumo ecológico, Supresor del apetito, Industria de las bebidas", "home-meta-description": "Descubre el delicioso sabor de un nuevo zumo ecológico, elaborado con ingredientes 100% naturales. Un supresor del apetito orgánico y natural nuevo en la industria de las bebidas.", "about-meta-keywords": "Industria de las bebidas,Huella de carbono,Bebida ecológica", "about-meta-description": "Nos tomamos muy en serio nuestra huella de carbono y nos esforzamos por ofrecer una bebida ecológica innovadora que no solo tenga un sabor delicioso, sino que actúe como supresor del apetito.", "home-title": "Zumo ecológico | Supresor natural del apetito", "about-title": "Sobre Nosotros | Descubre Nuestra Bebida Natural Ecológica", }, }; // When the page content is ready... document.addEventListener("DOMContentLoaded", () => { document // Find all elements that have the key attribute .querySelectorAll("[data-i18n-key]") .forEach(translateElement); bindLocaleSwitcher(locale); }); // Replace the inner text of the given HTML element // with the translation in the active locale, // corresponding to the element's data-i18n-key function translateElement(element) { const key = element.getAttribute("data-i18n-key"); const translation = translations[locale][key]; if (element.tagName == "META") element.setAttribute("content", translation); else element.innerText = translation; } function bindLocaleSwitcher(initialValue) { const switcher = document.querySelector("[data-i18n-switcher]"); switcher.value = initialValue; switcher.onchange = (e) => { locale = e.target.value; console.log(locale); document.querySelectorAll("[data-i18n-key]").forEach(translateElement); }; } // const select = document.querySelectorAll('.selectBtn'); // const option = document.querySelectorAll('.flag-icon'); // let index = 1; // select.forEach(a => { // a.addEventListener('click', b => { // const next = b.target.nextElementSibling; // next.classList.toggle('toggle'); // next.style.zIndex = index++; // }) // }) // option.forEach(a => { // a.addEventListener('click', b => { // b.target.parentElement.parentElement.classList.remove('toggle'); // const parent = b.target.closest('.select').children[0].children[0]; // parent.setAttribute('class', b.target.getAttribute('class')); // let language = b.target.getAttribute('data-type') // locale = language // document.querySelectorAll("[data-i18n-key]").forEach(translateElement); // }) // }) const select = document.querySelectorAll(".selectBtn"); const option = document.querySelectorAll(".option"); let index = 1; select.forEach((a) => { a.addEventListener("click", (b) => { const next = b.target.nextElementSibling; next.classList.toggle("toggle"); next.style.zIndex = index++; }); }); option.forEach((a) => { a.addEventListener("click", (b) => { b.target.parentElement.classList.remove("toggle"); const parent = b.target.closest(".select").children[0]; parent.setAttribute("data-type", b.target.getAttribute("data-type")); parent.innerHTML = b.target.innerHTML; let language = b.target.getAttribute("data-type"); locale = language; document.querySelectorAll("[data-i18n-key]").forEach(translateElement); }); });