French language
This commit is contained in:
parent
92c5e0bbfc
commit
4c39bd7e07
58
crabfit-frontend/public/i18n/fr/common.json
Normal file
58
crabfit-frontend/public/i18n/fr/common.json
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
"name": "Crab Fit",
|
||||
"tagline": "Crée le tien",
|
||||
"cta": "Créez votre propre Crab Fit!",
|
||||
"created": "Créé {{date}}",
|
||||
"donate": {
|
||||
"info": "Merci d'utiliser Crab Fit. Si vous l'aimez, pensez à faire un don.",
|
||||
"button": "Faire un don",
|
||||
"title": "Chaque montant compte :)",
|
||||
"options": {
|
||||
"$2": "Faites un don de $2",
|
||||
"$5": "Faites un don de $5",
|
||||
"$10": "Faites un don de $10",
|
||||
"choose": "Choisissez un montant"
|
||||
},
|
||||
"messages": {
|
||||
"about": "Si cela vous a aidé à tous, envisager de faire don pour aider à maintenir en cours d'exécution. 🦀",
|
||||
"success": "Merci pour votre don! Sans vous, Crab Fit ne serait pas gratuit, alors merci et continuez à être super génial!",
|
||||
"error": "Impossible de faire un don via Google. Veuillez essayer de faire un don via le site Web crab.fit 🦀"
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"name": "Options",
|
||||
"weekStart": {
|
||||
"label": "La semaine commence le",
|
||||
"options": {
|
||||
"Sunday": "dimanche",
|
||||
"Monday": "lundi"
|
||||
}
|
||||
},
|
||||
"timeFormat": {
|
||||
"label": "Format de l'heure",
|
||||
"options": {
|
||||
"12h": "12h",
|
||||
"24h": "24h"
|
||||
}
|
||||
},
|
||||
"theme": {
|
||||
"label": "Thème",
|
||||
"options": {
|
||||
"System": "Système",
|
||||
"Light": "Clair",
|
||||
"Dark": "Foncé"
|
||||
}
|
||||
},
|
||||
"highlight": {
|
||||
"label": "Mettre en évidence la plus haute disponibilité",
|
||||
"title": "Faites ressortir la disponibilité la plus élevée sur la carte thermique",
|
||||
"options": {
|
||||
"Off": "Éteint",
|
||||
"On": "Allumé"
|
||||
}
|
||||
},
|
||||
"language": {
|
||||
"label": "Langue"
|
||||
}
|
||||
}
|
||||
}
|
||||
63
crabfit-frontend/public/i18n/fr/event.json
Normal file
63
crabfit-frontend/public/i18n/fr/event.json
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"available": "disponible",
|
||||
|
||||
"nav": {
|
||||
"title": "Cliquez pour copier",
|
||||
"copied": "Copié!",
|
||||
"shareinfo": "Copiez le lien vers cette page ou partagez-le par <1>e-mail</1>.",
|
||||
"shareinfo_alt": "Cliquez sur le lien ci-dessus pour le copier dans votre presse-papiers ou le partager par <1>e-mail</1>.",
|
||||
"email_subject": "Planification {{event_name}}",
|
||||
"email_body": "Visitez ce lien pour saisir vos disponibilités:"
|
||||
},
|
||||
"form": {
|
||||
"signed_out": "Connectez-vous pour ajouter votre disponibilité",
|
||||
"signed_in": "Connecté en tant que {{name}}",
|
||||
|
||||
"name": "Votre nom",
|
||||
"password": "Mot de passe (facultatif)",
|
||||
"button": "Connexion",
|
||||
"info": "Ces détails ne concernent que cet événement. Utilisez un mot de passe pour empêcher les autres de modifier votre disponibilité.",
|
||||
|
||||
"timezone": "Votre fuseau horaire",
|
||||
|
||||
"errors": {
|
||||
"password_incorrect": "Le mot de passe est incorrect. Vérifiez que votre nom est correctement orthographié.",
|
||||
"unknown": "Échec de la connexion. Veuillez réessayer."
|
||||
},
|
||||
|
||||
"created_in_timezone": "Cet événement a été créé dans le fuseau horaire <strong>{{timezone}}</strong>. <3>Cliquez ici</3> pour l'utiliser.",
|
||||
"local_timezone": "Votre fuseau horaire local est détecté comme <strong>{{timezone}}</strong>. <3>Cliquez ici</3> pour l'utiliser."
|
||||
},
|
||||
"offline": {
|
||||
"title": "Tu es hors ligne",
|
||||
"body": "Un Crab Fit ne fonctionne pas hors ligne.<br />Assurez-vous que vous êtes connecté à Internet et réessayez."
|
||||
},
|
||||
"error": {
|
||||
"title": "Événement introuvable",
|
||||
"body": "Vérifiez que l'URL que vous avez saisie est correcte."
|
||||
},
|
||||
|
||||
"tabs": {
|
||||
"you": "Votre disponibilité",
|
||||
"you_tooltip": "Connectez-vous pour définir votre disponibilité",
|
||||
"group": "Disponibilité de groupe"
|
||||
},
|
||||
|
||||
"group": {
|
||||
"legend_tooltip": "Cliquez pour mettre en évidence la plus haute disponibilité",
|
||||
"info1": "Survolez ou appuyez sur le calendrier ci-dessous pour voir qui est disponible",
|
||||
"info2": "Cliquez sur les noms ci-dessous pour afficher les personnes individuellement"
|
||||
},
|
||||
|
||||
"you": {
|
||||
"info": "Cliquez et faites glisser le calendrier ci-dessous pour définir vos disponibilités",
|
||||
"google_cal": {
|
||||
"login": "Synchroniser avec Google Agenda",
|
||||
"logout": "déconnexion",
|
||||
"select_all": "Tout sélectionner",
|
||||
"select_none": "Tout déselectionner",
|
||||
"info": "L'importation écrasera votre disponibilité actuelle",
|
||||
"button": "Importer la disponibilité"
|
||||
}
|
||||
}
|
||||
}
|
||||
23
crabfit-frontend/public/i18n/fr/help.json
Normal file
23
crabfit-frontend/public/i18n/fr/help.json
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"name": "How to Crab Fit",
|
||||
|
||||
"p1": "Crab Fit is a tool that helps you when planning events with friends or coworkers. You just create an event, enter your availability, send it out, and see when everyone is free!",
|
||||
"p2": "See below for detailed steps of how to Crab Fit your event.",
|
||||
|
||||
"s1": "Step 1",
|
||||
|
||||
"p3": "Use the form at <1>crab.fit</1> to make a new event. You only need to put in the rough time period for when your event occurs here, not your availability.",
|
||||
"p4": "For example, we'll use \"Jenny's Birthday Lunch\". Jenny wants her birthday lunch to happen on the same week as her birthday, the 15th of April, but she knows that not all of her friends are available on the 15th. She also doesn't want to do it on the weekend.",
|
||||
"p5": "Jenny also knows that since it's a lunch event, it can't start before 11am or go any later than 5pm.",
|
||||
|
||||
"s2": "Step 2",
|
||||
|
||||
"p6": "Enter your availability for the event you just created.",
|
||||
"p7": "In our example, Jenny now puts in her availability for her birthday lunch. She is free all week, except after 3pm on Tuesday and Wednesday, and before 1pm on Friday.",
|
||||
|
||||
"s3": "Step 3",
|
||||
|
||||
"p8": "Send the link to everyone you want to come.",
|
||||
"p9": "After Jenny has sent the link to her friends and waited for them to also fill out their availabilities, she can now easily see them all on the heatmap below and choose the darkest area for a time that suits everyone!",
|
||||
"p10": "In this example, 1pm to 3pm on Friday the 16th works for all Jenny's friends."
|
||||
}
|
||||
57
crabfit-frontend/public/i18n/fr/home.json
Normal file
57
crabfit-frontend/public/i18n/fr/home.json
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"create": "CREER UN",
|
||||
"recently_visited": "Récemment visité",
|
||||
"nav": {
|
||||
"about": "Info",
|
||||
"donate": "Faire un don"
|
||||
},
|
||||
"form": {
|
||||
"name": {
|
||||
"label": "Donnez un nom à votre événement!",
|
||||
"sublabel": "Ou laissez vide pour en générer un"
|
||||
},
|
||||
"dates": {
|
||||
"label": "Quelles dates pourraient fonctionner?",
|
||||
"sublabel": "Cliquez et faites glisser pour sélectionner",
|
||||
"options": {
|
||||
"specific": "Dates spécifiques",
|
||||
"week": "Jours de la semaine"
|
||||
},
|
||||
"tooltips": {
|
||||
"previous": "Mois précédent",
|
||||
"next": "Mois prochain",
|
||||
"today": "aujourd'hui"
|
||||
}
|
||||
},
|
||||
"times": {
|
||||
"label": "Quels temps pourraient fonctionner?",
|
||||
"sublabel": "Cliquez et faites glisser pour sélectionner une plage de temps"
|
||||
},
|
||||
"timezone": {
|
||||
"label": "Et le fuseau horaire",
|
||||
"defaultOption": "Sélectionner..."
|
||||
},
|
||||
|
||||
"button": "Créer",
|
||||
"errors": {
|
||||
"no_dates": "Il n'y a pas de dates sélectionnées",
|
||||
"same_times": "Les heures de début et de fin ne peuvent pas être les mêmes",
|
||||
"no_time": "Il n'y a aucune heure sélectionnée",
|
||||
"unknown": "Un problème est survenu. Veuillez réessayer plus tard."
|
||||
}
|
||||
},
|
||||
"offline": "Vous ne pouvez pas créer un Crab Fit si vous ne disposez pas d'une connexion Internet. Veuillez vous assurer que vous êtes connecté.",
|
||||
|
||||
"about": {
|
||||
"name": "À propos de Crab Fit",
|
||||
"events": "Événements créés",
|
||||
"availabilities": "Disponibilités saisies",
|
||||
"content": {
|
||||
"p1": "Crab Fit vous aide à adapter votre événement aux horaires de chacun. Créez simplement un événement ci-dessus et envoyez le lien à tous les participants. Les résultats sont mis à jour en direct et vous pourrez voir une carte thermique de quand tout le monde est libre.<1/><2>En savoir plus sur la façon de Crab Fit</2>.",
|
||||
"p2": "Créer beaucoup d'ajustements de crabe? Obtenez <1>l'extension Chrome</1> ou <3>l'extension Firefox</3> pour votre navigateur! Vous pouvez également télécharger <5>l'application Android</5> sur Crab Fit lors de vos déplacements.",
|
||||
"p3": "Créé par <1>Ben Grant</1>, Crab Fit est la solution moderne pour vos débats de planification d'événements de groupe.",
|
||||
"p4": "Le code de Crab Fit est open source, si vous trouvez des problèmes ou souhaitez contribuer, vous pouvez visiter le <1>référentiel</1>. En utilisant Crab Fit, vous acceptez la <3>politique de confidentialité</3>.",
|
||||
"p5": "Pensez à faire un don ci-dessous si cela vous a aidé afin qu'il puisse rester gratuit pour tout le monde. 🦀"
|
||||
}
|
||||
}
|
||||
}
|
||||
52
crabfit-frontend/public/i18n/fr/privacy.json
Normal file
52
crabfit-frontend/public/i18n/fr/privacy.json
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
"name": "Privacy Policy",
|
||||
|
||||
"p1": "This SERVICE is provided by Benjamin Grant at no cost and is intended for use as is.",
|
||||
"p2": "This page is used to inform visitors regarding the policies of the collection, use, and disclosure of Personal Information if using the Service.",
|
||||
"p3": "If you choose to use the Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that is collected is used for providing and improving the Service. Your information will not be used or shared with anyone except as described in this Privacy Policy.",
|
||||
|
||||
"h1": "Information Collection and Use",
|
||||
|
||||
"p4": "The Service uses third party services that may collect information used to identify you.",
|
||||
"p5": "Links to privacy policies of the third party service providers used by the Service:",
|
||||
"link": "Google Play Services",
|
||||
|
||||
"h2": "Log Data",
|
||||
|
||||
"p6": "When you use the Service, in the case of an error, data and information is collected to improve the Service, which may include your IP address, device name, operating system version, app configuration and the time and date of the error.",
|
||||
|
||||
"h3": "Cookies",
|
||||
|
||||
"p7": "Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device's internal memory.",
|
||||
"p8": "Cookies are used by Google Analytics to track you across the web and provide anonymous statistics to improve the Service.",
|
||||
|
||||
"h4": "Service Providers",
|
||||
|
||||
"p9": "Third-party companies may be employed for the following reasons:",
|
||||
"l1": "To facilitate the Service",
|
||||
"l2": "To provide the Service on our behalf",
|
||||
"l3": "To perform Service-related services",
|
||||
"l4": "To assist in analyzing how the Service is used",
|
||||
"p10": "To perform these tasks, the third parties may have access to your Personal Information, but are obligated not to disclose or use this information for any purpose except the above.",
|
||||
|
||||
"h5": "Security",
|
||||
|
||||
"p11": "Personal Information that is shared via the Service is protected, however remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, so take care when sharing Personal Information.",
|
||||
|
||||
"h6": "Links to Other Sites",
|
||||
|
||||
"p12": "The Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by the Service. Therefore, you are advised to review the Privacy Policy of these websites.",
|
||||
|
||||
"h7": "Children's Privacy",
|
||||
|
||||
"p13": "The Service does not address anyone under the age of 13. Personally identifiable information is not knowingly collected from children under 13. If discovered that a child under 13 has provided the Service with personal information, such information will be immediately deleted from the servers. If you are a parent or guardian and you are aware that your child has provided the Service with personal information, please <1>contact us</1> so that this information can be removed.",
|
||||
|
||||
"h8": "Changes to This Privacy Policy",
|
||||
|
||||
"p14": "This Privacy Policy may be updated from time to time. Thus, you are advised to review this page periodically for any changes.",
|
||||
"p15": "This policy is effective as of 2021-04-20",
|
||||
|
||||
"h9": "Contact Us",
|
||||
|
||||
"p16": "If you have any questions or suggestions about the Privacy Policy, do not hesitate to contact us at <1>benjamin.grantGRA0007+crabfit@gmail.com</1>."
|
||||
}
|
||||
|
|
@ -93,7 +93,7 @@ const Donate = ({ onDonate = null }) => {
|
|||
>
|
||||
<Button
|
||||
buttonHeight="30px"
|
||||
buttonWidth="90px"
|
||||
buttonWidth={`${Math.max(t('donate.button').length*10, 90)}px`}
|
||||
type="button"
|
||||
tabIndex="-1"
|
||||
title={t('donate.title')}
|
||||
|
|
|
|||
|
|
@ -43,6 +43,11 @@ export const StyledSelect = styled.select`
|
|||
border-radius: 3px;
|
||||
outline: none;
|
||||
transition: border-color .15s, box-shadow .15s;
|
||||
appearance: none;
|
||||
background-image: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><foreignObject width=%22100px%22 height=%22100px%22><div xmlns=%22http://www.w3.org/1999/xhtml%22 style=%22color:${props => encodeURIComponent(props.theme.primary)};font-size:60px;display:flex;align-items:center;justify-content:center;height:100%25;width:100%25%22>▼</div></foreignObject></svg>");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 10px center;
|
||||
background-size: 1em;
|
||||
|
||||
&:focus {
|
||||
border: 1px solid ${props => props.theme.primary};
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ const Settings = () => {
|
|||
'en': 'English',
|
||||
'de': 'Deutsch',
|
||||
'es': 'Español',
|
||||
'fr': 'Français',
|
||||
'ko': '한국어',
|
||||
...process.env.NODE_ENV !== 'production' && { 'cimode': 'DEV' },
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -3,13 +3,15 @@ import { initReactI18next } from 'react-i18next';
|
|||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
import Backend from 'i18next-http-backend';
|
||||
|
||||
import locales from 'res/dayjs_locales';
|
||||
|
||||
i18n
|
||||
.use(LanguageDetector)
|
||||
.use(Backend)
|
||||
.use(initReactI18next)
|
||||
.init({
|
||||
fallbackLng: 'en',
|
||||
supportedLngs: ['en', 'de', 'es', 'ko'],
|
||||
supportedLngs: Object.keys(locales),
|
||||
ns: 'common',
|
||||
defaultNS: 'common',
|
||||
debug: process.env.NODE_ENV !== 'production',
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ const locales = {
|
|||
de: () => import('dayjs/locale/de'),
|
||||
es: () => import('dayjs/locale/es'),
|
||||
ko: () => import('dayjs/locale/ko'),
|
||||
fr: () => import('dayjs/locale/fr'),
|
||||
};
|
||||
|
||||
export default locales;
|
||||
|
|
|
|||
Loading…
Reference in a new issue