Untitled
Anonymous
plain_text
04/16/2026 7:58 PM
32.7 KB
8
Indexable
export const translations = {
fr: {
home: 'Accueil',
about: 'All Dental Clinic',
services: 'Nos services',
dentalTourism: 'Tourisme dentaire',
news: 'Actualités',
contact: 'Contact',
bookNow: 'Prendre rendez-vous',
call: 'Appeler',
learnMore: 'En savoir plus',
send: 'Envoyer',
cancel: 'Annuler',
submit: 'Soumettre',
phone: 'Téléphone',
email: 'E-mail',
address: 'Adresse',
offers: 'Offres',
pageNotFound: 'Page introuvable',
backToHome: "Retour à l'accueil"
},
en: {
home: 'Home',
about: 'All Dental Clinic',
services: 'Our Services',
dentalTourism: 'Dental Tourism',
news: 'News',
contact: 'Contact',
bookNow: 'Book an Appointment',
call: 'Call',
learnMore: 'Learn More',
send: 'Send',
cancel: 'Cancel',
submit: 'Submit',
phone: 'Phone',
email: 'Email',
address: 'Address',
offers: 'Offers',
pageNotFound: 'Page Not Found',
backToHome: 'Back to Home'
}
};
export const t = (lang, key) => {
return translations[lang]?.[key] || translations['fr'][key] || key;
};
const englishNewsArticles = [
{
id: '505jc88kkdo7yjl',
author: 'Dental Clinic',
category: 'NEWS',
collectionId: 'pbc_4473030115',
collectionName: 'news',
content: `A broken tooth in a child can be frightening, but a quick and appropriate response can reduce pain, prevent infection, and improve the chances of successful repair. Here are the steps to follow, depending on the severity of the fracture, while waiting for professional care.
Stay calm and reassure the child
The first thing to do is stay calm and reassure the child. Crying and stress make it harder to assess the injury and provide care. Explain simply that you are going to help and that the dentist will take care of everything.
Assess the injury
Look quickly inside the mouth: is there any bleeding? Is the tooth displaced or missing? Is the child in severe pain?
Check for other injuries such as facial cuts, loss of consciousness, or vomiting. In case of head trauma, heavy bleeding, or neurological signs, call emergency services immediately.
Find and preserve any tooth fragments
If you find a piece of the tooth, pick it up and gently rinse it with cold water to remove dirt and debris. Do not scrub or brush the fragment.
Keep the fragment in cold milk if possible. Otherwise, place it in saline solution or inside the child's mouth between the cheek and gum if the child is old enough and fully conscious. Avoid storing it in tap water for a long time.
Control bleeding and pain
If the bleeding is mild, place a clean compress or damp gauze on the area and apply gentle pressure for 10 to 15 minutes.
Give an age-appropriate pain reliever such as acetaminophen or ibuprofen, depending on age and contraindications, while following the recommended dosage. Do not give aspirin to a child.
To reduce pain and swelling, apply an ice pack wrapped in a cloth to the cheek for 10 to 15 minutes, with regular breaks.
What not to do
Do not try to reposition a baby tooth yourself. Primary teeth should not be put back in place without professional advice.
Do not use sharp objects or alcohol-soaked cotton to clean the wound.
Do not force the tooth back into place if it is loose or if the child feels sharp pain.
Tell the difference between a baby tooth and a permanent tooth
If the child is young and the injured tooth is a baby tooth, management is often different. A fragment from a baby tooth is not reattached, but the child should still be seen quickly to assess any risk to the developing permanent tooth.
If the broken tooth is a permanent tooth, which is more common in older children, treatment is urgent, especially if the pulp is exposed. Signs can include severe pain or visible bleeding at the center of the tooth. This usually requires an emergency dental appointment.
Is it an emergency or just a quick appointment?
Dental emergency: contact the dentist or emergency services if there is unbearable pain, visible pulp exposure, a displaced or knocked-out tooth, bleeding that does not stop, or signs of infection such as major swelling or fever.
Quick appointment within 24 to 48 hours: a fracture without pulp exposure, moderate pain, or a fragment that has been found and preserved.
Care while waiting for the appointment
Avoid hard or sticky foods and choose soft, lukewarm meals instead.
Maintain gentle oral hygiene with light brushing and warm salt-water rinses using one teaspoon of salt in a glass of warm water to help limit the risk of infection.
Watch for swelling, persistent bleeding, or increasing pain.
At the dental office
The dentist will examine the tooth and may take X-rays to assess the severity of the fracture. Treatment may include bonding the fragment back in place, rebuilding the tooth, placing a veneer or crown, or performing root canal treatment if the pulp is affected. Follow-up visits may also be scheduled to monitor the tooth and the child's development.
Conclusion
A broken tooth in a child requires calm action, a quick assessment, and preservation of the fragment whenever possible. Control bleeding and pain, avoid inappropriate actions, and see your dentist promptly. Early treatment significantly improves the functional and cosmetic outcome for the tooth.`,
created: '2026-04-07 19:11:34.031Z',
description: 'What to do if a child breaks a tooth: the right steps to take while waiting to see the dentist.',
image: 'fracture_de_dent_xsylyxyl62.png',
imageAlt: 'Image showing a child at the dentist during a dental examination',
publishedAt: '2026-04-07 00:00:00.000Z',
slug: 'fracture-dent-enfant-gestes-dentiste',
title: 'What to do if a child breaks a tooth: steps to take before seeing the dentist',
updated: '2026-04-08 08:16:13.687Z',
seoTitle: 'What to do if a child breaks a tooth before seeing the dentist',
seoDescription: 'A broken tooth in a child can be stressful. Learn the right first-aid steps to relieve pain, protect the tooth, and know when to seek urgent dental care.',
h1: 'What to do if a child breaks a tooth: steps to take before seeing the dentist',
},
{
id: '00zzlr2daocf5zd',
author: 'Dr. Clinic',
category: 'Implantology',
collectionId: 'pbc_4473030115',
collectionName: 'news',
content: 'Dental implants represent a major breakthrough in restorative dentistry. Unlike traditional bridges or crowns, implants provide a long-term solution that helps preserve the jawbone and protects neighboring teeth. With a success rate of over 95%, dental implants have become the gold standard for replacing missing teeth. Our clinic uses the latest implantology technologies to deliver reliable, lasting, and highly aesthetic results.',
created: '2026-04-07 19:11:34.030Z',
description: 'Discover how dental implants provide a long-lasting and aesthetic solution for replacing missing teeth, with an exceptionally high success rate.',
image: 'implantologie_th1vh6gxl4.jpg',
imageAlt: 'dental implants',
publishedAt: '2026-03-15 00:00:00.000Z',
slug: 'implants-dentaires-solution-moderne',
title: 'Dental Implants: The Modern Solution for Replacing Missing Teeth',
updated: '2026-04-08 08:17:45.870Z',
seoTitle: 'Dental implants: a modern solution for missing teeth',
seoDescription: 'Learn why dental implants are considered the gold standard for replacing missing teeth with long-lasting, natural-looking results.',
h1: 'Dental Implants: The Modern Solution for Replacing Missing Teeth',
},
{
id: '6kgdbl749j791bg',
author: 'Dr. Clinic',
category: 'Aesthetics',
collectionId: 'pbc_4473030115',
collectionName: 'news',
content: 'Teeth whitening is one of the most popular and effective cosmetic procedures for improving the appearance of your smile. Professional in-office techniques deliver results that are far superior to over-the-counter products. Our clinic offers whitening solutions tailored to each patient, with visible results often appearing after the very first session. With proper maintenance, the results can last for several months.',
created: '2026-04-07 19:11:34.030Z',
description: 'Explore professional teeth-whitening techniques and learn how to achieve visible, long-lasting results for a whiter, brighter smile.',
image: 'apr_s_blanchiment_fbp9pcztzx.png',
imageAlt: 'teeth whitening',
publishedAt: '2026-03-10 00:00:00.000Z',
slug: 'blanchiment-dentaire-sourire-eclatant',
title: 'Teeth Whitening: Restore a Brighter Smile in Just a Few Sessions',
updated: '2026-04-08 08:21:16.355Z',
seoTitle: 'Professional teeth whitening for a brighter smile',
seoDescription: 'Discover the benefits of professional teeth whitening and how tailored treatments can safely deliver visible and long-lasting results.',
h1: 'Teeth Whitening: Restore a Brighter Smile in Just a Few Sessions',
},
{
id: 'a31omdi7e33dzds',
author: 'Dr. Clinic',
category: 'Prevention',
collectionId: 'pbc_4473030115',
collectionName: 'news',
content: 'Prevention is the foundation of good oral health. Cavities are among the most common dental conditions, but they can often be avoided with proper hygiene and healthy habits. Regular brushing with fluoride toothpaste, daily flossing, and routine dental visits all play an essential role. Our team also recommends limiting sugary and acidic foods and drinks, since they can weaken enamel and increase the risk of tooth decay.',
created: '2026-04-07 19:11:34.030Z',
description: 'Learn the best habits for preventing cavities and maintaining excellent oral health throughout your life.',
image: 'avant_cari_1_nznin2gf5k.png',
imageAlt: 'child cavity prevention',
publishedAt: '2026-03-05 00:00:00.000Z',
slug: 'prevention-caries-sante-bucco-dentaire',
title: 'Cavity Prevention: Best Practices for Optimal Oral Health',
updated: '2026-04-08 08:21:06.728Z',
seoTitle: 'How to prevent cavities and protect oral health',
seoDescription: 'Good oral hygiene and healthy daily habits go a long way in preventing cavities and preserving a healthy smile.',
h1: 'Cavity Prevention: Best Practices for Optimal Oral Health',
},
{
id: 'cj4vytbzirkg0a3',
author: '',
category: '',
collectionId: 'pbc_4473030115',
collectionName: 'news',
content: `Good tooth brushing is essential for maintaining proper oral hygiene and preventing cavities, gingivitis, and bad breath. It is recommended to use a soft-bristled toothbrush or a suitable electric toothbrush to protect both enamel and gums, and to replace it every three months or sooner if the bristles are worn. Choosing a fluoride toothpaste, usually between 1000 and 1500 ppm, is also important because it strengthens enamel and helps reduce the risk of cavities.
You should brush at least twice a day, in the morning and especially at night before going to bed, for a minimum of two minutes. Technique matters just as much as frequency. Hold the toothbrush at a 45-degree angle toward the gumline and use gentle, short movements instead of harsh horizontal scrubbing. Clean all tooth surfaces methodically, including the inner sides and hard-to-reach areas. For the front teeth, hold the brush vertically and make light up-and-down strokes.
It is also important not to apply too much pressure, as this can wear down enamel and contribute to gum recession. Brushing should be complemented by daily flossing or the use of interdental brushes to remove plaque between the teeth. A fluoride mouthwash can also be helpful when needed.
Some situations require special attention, especially for children, people with sensitive teeth, or those wearing braces. Finally, if you notice bleeding, pain, or persistent bad breath, it is best to see a dentist. Regular dental checkups and professional cleanings remain essential for maintaining optimal oral health.`,
created: '2026-04-10 09:59:54.870Z',
description: 'Good brushing combines the right toothbrush, the right technique, enough time, and daily flossing. These simple habits help protect your teeth and gums and support a healthy smile over time.',
image: 'technique_de_brossage_27ogio7xkt.png',
imageAlt: 'tooth brushing technique',
publishedAt: '',
slug: 'brossage-dents-hygiene-bucco-dentaire-techniques',
title: 'How to Brush Your Teeth Properly: Best Techniques for a Healthy Smile',
updated: '2026-04-10 15:29:20.853Z',
seoTitle: 'How to brush your teeth properly for better oral hygiene',
seoDescription: 'Learn the right toothbrush, timing, and brushing technique to protect your teeth and gums and maintain excellent oral hygiene.',
h1: 'How to Brush Your Teeth Properly: Best Techniques for a Healthy Smile',
},
];
const sortNewsArticles = (articles) =>
[...articles].sort((a, b) => {
const aDate = new Date(a.publishedAt || a.created || 0).getTime();
const bDate = new Date(b.publishedAt || b.created || 0).getTime();
return bDate - aDate;
});
const englishNewsArticlesByKey = englishNewsArticles.reduce((acc, article) => {
acc[article.id] = article;
acc[article.slug] = article;
return acc;
}, {});
export const getEnglishNewsArticles = () => sortNewsArticles(englishNewsArticles);
export const getEnglishNewsArticle = (idOrSlug) => {
if (!idOrSlug) return null;
return englishNewsArticlesByKey[idOrSlug] || null;
};
const newsArticleTranslationsEn = {
'505jc88kkdo7yjl': {
slug: 'fracture-dent-enfant-gestes-dentiste',
author: 'Dental Clinic',
category: 'NEWS',
title: "What to do if a child breaks a tooth: steps to take before seeing the dentist",
description: 'What to do if a child breaks a tooth: the right steps to take while waiting to see the dentist.',
imageAlt: 'Image showing a child at the dentist during a dental examination',
seoTitle: "What to do if a child breaks a tooth before seeing the dentist",
seoDescription: 'A broken tooth in a child can be stressful. Learn the right first-aid steps to relieve pain, protect the tooth, and know when to seek urgent dental care.',
h1: "What to do if a child breaks a tooth: steps to take before seeing the dentist",
content: `A broken tooth in a child can be frightening, but a quick and appropriate response can reduce pain, prevent infection, and improve the chances of successful repair. Here are the steps to follow, depending on the severity of the fracture, while waiting for professional care.
Stay calm and reassure the child
The first thing to do is stay calm and reassure the child. Crying and stress make it harder to assess the injury and provide care. Explain simply that you are going to help and that the dentist will take care of everything.
Assess the injury
Look quickly inside the mouth: is there any bleeding? Is the tooth displaced or missing? Is the child in severe pain?
Check for other injuries such as facial cuts, loss of consciousness, or vomiting. In case of head trauma, heavy bleeding, or neurological signs, call emergency services immediately.
Find and preserve any tooth fragments
If you find a piece of the tooth, pick it up and gently rinse it with cold water to remove dirt and debris. Do not scrub or brush the fragment.
Keep the fragment in cold milk if possible. Otherwise, place it in saline solution or inside the child's mouth between the cheek and gum if the child is old enough and fully conscious. Avoid storing it in tap water for a long time.
Control bleeding and pain
If the bleeding is mild, place a clean compress or damp gauze on the area and apply gentle pressure for 10 to 15 minutes.
Give an age-appropriate pain reliever such as acetaminophen or ibuprofen, depending on age and contraindications, while following the recommended dosage. Do not give aspirin to a child.
To reduce pain and swelling, apply an ice pack wrapped in a cloth to the cheek for 10 to 15 minutes, with regular breaks.
What not to do
Do not try to reposition a baby tooth yourself. Primary teeth should not be put back in place without professional advice.
Do not use sharp objects or alcohol-soaked cotton to clean the wound.
Do not force the tooth back into place if it is loose or if the child feels sharp pain.
Tell the difference between a baby tooth and a permanent tooth
If the child is young and the injured tooth is a baby tooth, management is often different. A fragment from a baby tooth is not reattached, but the child should still be seen quickly to assess any risk to the developing permanent tooth.
If the broken tooth is a permanent tooth, which is more common in older children, treatment is urgent, especially if the pulp is exposed. Signs can include severe pain or visible bleeding at the center of the tooth. This usually requires an emergency dental appointment.
Is it an emergency or just a quick appointment?
Dental emergency: contact the dentist or emergency services if there is unbearable pain, visible pulp exposure, a displaced or knocked-out tooth, bleeding that does not stop, or signs of infection such as major swelling or fever.
Quick appointment within 24 to 48 hours: a fracture without pulp exposure, moderate pain, or a fragment that has been found and preserved.
Care while waiting for the appointment
Avoid hard or sticky foods and choose soft, lukewarm meals instead.
Maintain gentle oral hygiene with light brushing and warm salt-water rinses using one teaspoon of salt in a glass of warm water to help limit the risk of infection.
Watch for swelling, persistent bleeding, or increasing pain.
At the dental office
The dentist will examine the tooth and may take X-rays to assess the severity of the fracture. Treatment may include bonding the fragment back in place, rebuilding the tooth, placing a veneer or crown, or performing root canal treatment if the pulp is affected. Follow-up visits may also be scheduled to monitor the tooth and the child's development.
Conclusion
A broken tooth in a child requires calm action, a quick assessment, and preservation of the fragment whenever possible. Control bleeding and pain, avoid inappropriate actions, and see your dentist promptly. Early treatment significantly improves the functional and cosmetic outcome for the tooth.`
},
'00zzlr2daocf5zd': {
slug: 'implants-dentaires-solution-moderne',
author: 'Dr. Clinic',
category: 'Implantology',
title: 'Dental Implants: The Modern Solution for Replacing Missing Teeth',
description: 'Discover how dental implants provide a long-lasting and aesthetic solution for replacing missing teeth, with an exceptionally high success rate.',
imageAlt: 'dental implants',
seoTitle: 'Dental implants: a modern solution for missing teeth',
seoDescription: 'Learn why dental implants are considered the gold standard for replacing missing teeth with long-lasting, natural-looking results.',
h1: 'Dental Implants: The Modern Solution for Replacing Missing Teeth',
content: `Dental implants represent a major breakthrough in restorative dentistry. Unlike traditional bridges or crowns, implants provide a long-term solution that helps preserve the jawbone and protects neighboring teeth. With a success rate of over 95%, dental implants have become the gold standard for replacing missing teeth. Our clinic uses the latest implantology technologies to deliver reliable, lasting, and highly aesthetic results.`
},
'6kgdbl749j791bg': {
slug: 'blanchiment-dentaire-sourire-eclatant',
author: 'Dr. Clinic',
category: 'Aesthetics',
title: 'Teeth Whitening: Restore a Brighter Smile in Just a Few Sessions',
description: 'Explore professional teeth-whitening techniques and learn how to achieve visible, long-lasting results for a whiter, brighter smile.',
imageAlt: 'teeth whitening',
seoTitle: 'Professional teeth whitening for a brighter smile',
seoDescription: 'Discover the benefits of professional teeth whitening and how tailored treatments can safely deliver visible and long-lasting results.',
h1: 'Teeth Whitening: Restore a Brighter Smile in Just a Few Sessions',
content: `Teeth whitening is one of the most popular and effective cosmetic procedures for improving the appearance of your smile. Professional in-office techniques deliver results that are far superior to over-the-counter products. Our clinic offers whitening solutions tailored to each patient, with visible results often appearing after the very first session. With proper maintenance, the results can last for several months.`
},
'a31omdi7e33dzds': {
slug: 'prevention-caries-sante-bucco-dentaire',
author: 'Dr. Clinic',
category: 'Prevention',
title: 'Cavity Prevention: Best Practices for Optimal Oral Health',
description: 'Learn the best habits for preventing cavities and maintaining excellent oral health throughout your life.',
imageAlt: 'child cavity prevention',
seoTitle: 'How to prevent cavities and protect oral health',
seoDescription: 'Good oral hygiene and healthy daily habits go a long way in preventing cavities and preserving a healthy smile.',
h1: 'Cavity Prevention: Best Practices for Optimal Oral Health',
content: `Prevention is the foundation of good oral health. Cavities are among the most common dental conditions, but they can often be avoided with proper hygiene and healthy habits. Regular brushing with fluoride toothpaste, daily flossing, and routine dental visits all play an essential role. Our team also recommends limiting sugary and acidic foods and drinks, since they can weaken enamel and increase the risk of tooth decay.`
},
'cj4vytbzirkg0a3': {
slug: 'brossage-dents-hygiene-bucco-dentaire-techniques',
author: '',
category: '',
title: 'How to Brush Your Teeth Properly: Best Techniques for a Healthy Smile',
description: 'Good brushing combines the right toothbrush, the right technique, enough time, and daily flossing. These simple habits help protect your teeth and gums and support a healthy smile over time.',
imageAlt: 'tooth brushing technique',
seoTitle: 'How to brush your teeth properly for better oral hygiene',
seoDescription: 'Learn the right toothbrush, timing, and brushing technique to protect your teeth and gums and maintain excellent oral hygiene.',
h1: 'How to Brush Your Teeth Properly: Best Techniques for a Healthy Smile',
content: `Good tooth brushing is essential for maintaining proper oral hygiene and preventing cavities, gingivitis, and bad breath. It is recommended to use a soft-bristled toothbrush or a suitable electric toothbrush to protect both enamel and gums, and to replace it every three months or sooner if the bristles are worn. Choosing a fluoride toothpaste, usually between 1000 and 1500 ppm, is also important because it strengthens enamel and helps reduce the risk of cavities.
You should brush at least twice a day, in the morning and especially at night before going to bed, for a minimum of two minutes. Technique matters just as much as frequency. Hold the toothbrush at a 45-degree angle toward the gumline and use gentle, short movements instead of harsh horizontal scrubbing. Clean all tooth surfaces methodically, including the inner sides and hard-to-reach areas. For the front teeth, hold the brush vertically and make light up-and-down strokes.
It is also important not to apply too much pressure, as this can wear down enamel and contribute to gum recession. Brushing should be complemented by daily flossing or the use of interdental brushes to remove plaque between the teeth. A fluoride mouthwash can also be helpful when needed.
Some situations require special attention, especially for children, people with sensitive teeth, or those wearing braces. Finally, if you notice bleeding, pain, or persistent bad breath, it is best to see a dentist. Regular dental checkups and professional cleanings remain essential for maintaining optimal oral health.`
}
};
const newsArticleTranslationsEnByKey = Object.entries(newsArticleTranslationsEn).reduce(
(acc, [id, translation]) => {
acc[id] = translation;
if (translation.slug) {
acc[translation.slug] = translation;
}
return acc;
},
{}
);
export const translateNewsArticleToEnglish = (article) => {
if (!article) return article;
const translation =
englishNewsArticlesByKey[article.id] ||
englishNewsArticlesByKey[article.slug] ||
newsArticleTranslationsEnByKey[article.id] ||
newsArticleTranslationsEnByKey[article.slug];
if (!translation) {
return article;
}
return {
...article,
...translation,
};
};
Editor is loading...
Leave a Comment