{"" : "import json\n\ndef translate_content(data):\n target_locale = data['TARGET_LOCALE']\n primary_keyword = data['PRIMARY_KEYWORD']\n source_content = data['SOURCE_CONTENT']\n available_internal_urls = data['AVAILABLE_INTERNAL_URLS']\n\n # Mapping of source URLs to available Spanish URLs\n url_mapping = {\n 'https://www.topvitamine.com/collections/vitamin-b-benefits-sources-safety': 'https://www.topvitamine.com/es/collections/vitamin-b-benefits-sources-safety',\n 'https://www.topvitamine.com/collections/vitamin-c-benefits-immunity-antioxidant-energy': 'https://www.topvitamine.com/es/collections/vitamin-c-benefits-immunity-antioxidant-energy',\n 'https://www.topvitamine.com/collections/vitamin-d-benefits-sources-safety': 'https://www.topvitamine.com/es/collections/vitamin-d-benefits-sources-safety'\n }\n\n translated_html = source_content\n for source_url, target_url in url_mapping.items():\n translated_html = translated_html.replace(source_url, target_url)\n\n return {\"translated_html\": translated_html}\n\n# Example usage\nif __name__ == \"__main__\":\n input_data = {\n \"TARGET_LOCALE\": \"es\",\n \"PRIMARY_KEYWORD\": \"vitamin intake recommendations\",\n \"SOURCE_CONTENT\": \"\"\"
Vitamin Intake Recommendations: A Quick Guide
\\nVitamin intake recommendations are designed to help you meet your nutritional needs and support normal bodily functions. While a balanced diet is the best way to obtain essential nutrients, many people look to supplements for additional support. Below, we cover the basics of vitamins, their roles, and important considerations for safe use.
\\nUnderstanding Vitamins and Their Functions
\\nVitamins are organic compounds that play specific roles in the body, from supporting the immune system to aiding in energy metabolism. For example, vitamin C contributes to normal immune function and helps protect cells from oxidative stress. Similarly, vitamin D is important for bone health, and several B vitamins assist in converting food into energy. Each vitamin has a unique set of functions, and getting enough of them is crucial for overall health.
\\nNutrient intake guidelines can vary based on age, sex, and life stage. They serve as general targets for healthy individuals and are not intended to diagnose or treat deficiencies.
\\nFood Sources and Supplementation
\\nBefore considering supplements, it is usually best to focus on nutrient-dense foods. Many vitamin C sources like fruits and vegetables, or vitamin D sources like fatty fish and fortified foods, can help you reach your daily targets. However, supplementation can be useful for those who struggle to meet their needs through diet alone, including individuals with restricted diets or certain lifestyle factors.
\\nSafety and Individual Variability
\\nWhen choosing a supplement, quality and dosage matter. It's important to follow the recommended intake levels and be mindful of potential interactions with medications. Individual needs can vary significantly, so what works for one person may not be appropriate for another. Always consider professional advice when deciding on a supplement routine, especially for fat-soluble vitamins that are stored in the body.
\"\"\",\n \"AVAILABLE_INTERNAL_URLS\": [\"https://www.topvitamine.com/es/collections/topvitamine-natural-supplements\",\"https://www.topvitamine.com/es/collections/vitamin-a-benefits-sources-safety\",\"https://www.topvitamine.com/es/collections/vitamin-d-benefits-sources-safety\",\"https://www.topvitamine.com/es/collections/vitamin-b-benefits-sources-safety\",\"https://www.topvitamine.com/es/collections/vitamin-c-benefits-immunity-antioxidant-energy\",\"https://www.topvitamine.com/es/collections/vitamin-e-benefits-antioxidant-cell-health\",\"https://www.topvitamine.com/es/collections/vitamin-k-benefits-bone-blood-health\",\"https://www.topvitamine.com/es/collections/multivitamins-guide-ingredients-usage-safety\",\"https://www.topvitamine.com/es/collections/magnesium-benefits-energy-muscle-bone-support\",\"https://www.topvitamine.com/es/collections/calcium-benefits-bone-muscle-health-efsa\",\"https://www.topvitamine.com/es/collections/mineral-supplements-guide-iron-zinc-selenium-iodine-copper-manganese-chromium\",\"https://www.topvitamine.com/es/collections/superfoods-guide-efsa-approved-nutrient-claims\",\"https://www.topvitamine.com/es/collections/herbal-supplements-traditional-guide-safety-sourcing\",\"https://www.topvitamine.com/es/collections/curcumin-safe-regulated-health-uses\",\"https://www.topvitamine.com/es/collections/turmeric-supplements\",\"https://www.topvitamine.com/es/collections/ashwagandha-supplements\",\"https://www.topvitamine.com/es/collections/amino-acids-supplements\",\"https://www.topvitamine.com/es/collections/sports-supplements-guide\",\"https://www.topvitamine.com/es/collections/probiotics-and-prebiotics-supplements\",\"https://www.topvitamine.com/es/collections/dha-epa-omega-3-supplements\",\"https://www.topvitamine.com/es/collections/healthy-origins-supplements\",\"https://www.topvitamine.com/es/collections/dr-mercola-natural-health\",\"https://www.topvitamine.com/es/collections/natures-plus-supplements\",\"https://www.topvitamine.com/es/collections/allergy-research-group-supplements\",\"https://www.topvitamine.com/es/collections/trace-minerals-supplements\",\"https://www.topvitamine.com/es/collections/health-factory-supplements\",\"https://www.topvitamine.com/es/collections/expiry-deals-40-discount\",\"https://www.topvitamine.com/es/collections/expiry-deals-60-discount\",\"https://www.topvitamine.com/es/collections/ati-oxidants\",\"https://www.topvitamine.com/es/collections/antioxidants-help-protect-your-body-by-neutralizing-free-radicals\",\"https://www.topvitamine.com/es/collections/fosfolipiden\"]\n }\n\n result = translate_content(input_data)\n print(result['translated_html'])"}