From 5a69f52653772b2791149c4d83526a3c37333d11 Mon Sep 17 00:00:00 2001 From: Nans-ssss <146657048+Nans-ssss@users.noreply.github.com> Date: Sun, 15 Feb 2026 16:38:39 +0100 Subject: [PATCH] Add french translation (#190) --- locales/fr-FR/common.json | 37 +++++++++++++++++++++++++++++++++++++ util/i18n.ts | 3 +++ 2 files changed, 40 insertions(+) create mode 100644 locales/fr-FR/common.json diff --git a/locales/fr-FR/common.json b/locales/fr-FR/common.json new file mode 100644 index 0000000..e28074b --- /dev/null +++ b/locales/fr-FR/common.json @@ -0,0 +1,37 @@ +{ + "Incidents": "Incidents", + "No data yet": "Aucune donnée pour le moment", + "All systems not operational": "Aucun système n'est opérationnel", + "All systems operational": "Tous les systèmes sont opérationnels", + "Some systems not operational": "Certains systèmes ne fonctionnent pas ({{down}} sur {{total}})", + "Last updated on": "Dernière actualisation : {{date}} (il y a {{seconds}} secondes)", + "upcoming maintenance": "{{count}} maintenance à venir", + "upcoming maintenance_plural": "{{count}} maintenances à venir", + "Hide": "[Masquer]", + "Show": "[Afficher]", + "Operational": "Opérationnel", + "No data available": "Aucune donnée disponible. Veuillez vous assurer d'avoir déployé vos workers avec la dernière configuration et vérifiez leur statut !", + "Overall": "Moyenne : {{percent}}%", + "No Data": "Aucune donnée", + "percent at date": "{{percent}}% le {{date}}", + "Down for": "Interruption de {{duration}} (cliquez pour plus de détails)", + "incidents at": "🚨 Incidents sur {{name}} le {{date}}", + "Response times": "Temps de réponse (ms)", + "Upcoming": "[À venir] ", + "Scheduled Maintenance": "Maintenance planifiée", + "Scheduled for": "Planifiée pour :", + "From": "De :", + "Expected end": "Fin prévue :", + "To": "À :", + "Until further notice": "Jusqu'à nouvel ordre", + "Affected components": "Composants affectés :", + "MONITOR ID NOT FOUND": "[ERR : ID DU MONITEUR INTROUVABLE]", + "No incidents in this month": "Aucun incident ce mois-ci", + "There are no incidents for this month": "Il n'y a aucun incident pour ce mois-ci.", + "Monitor not found": "Le moniteur avec l'ID {{id}} est introuvable !", + "Monitor State not defined": "L'état du moniteur n'est pas défini actuellement, veuillez vérifier le statut de votre worker et sa liaison !", + "All": "Tous", + "Select monitor": "Sélectionner un moniteur", + "Backwards": "← Précédent", + "Forward": "Suivant →" +} \ No newline at end of file diff --git a/util/i18n.ts b/util/i18n.ts index ff7f85a..54d912a 100644 --- a/util/i18n.ts +++ b/util/i18n.ts @@ -4,6 +4,7 @@ import LanguageDetector from 'i18next-browser-languagedetector' import en from '../locales/en/common.json' import zhCN from '../locales/zh-CN/common.json' import zhTW from '../locales/zh-TW/common.json' +import frFR from '../locales/fr-FR/common.json' i18n .use(LanguageDetector) @@ -14,6 +15,8 @@ i18n 'zh-CN': { common: zhCN }, zh: { common: zhCN }, 'zh-TW': { common: zhTW }, + fr: { common: frFR }, + 'fr-FR': { common: frFR }, }, fallbackLng: 'en', interpolation: {