add the fr option language and begin a fr.json proposition

pull/316/head
manusquall 3 years ago
parent a153999fea
commit 8310849108

@ -1087,16 +1087,6 @@
"postcss": "^7.0.0"
}
},
"@kazupon/vue-i18n-loader": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/@kazupon/vue-i18n-loader/-/vue-i18n-loader-0.5.0.tgz",
"integrity": "sha512-Tp2mXKemf9/RBhI9CW14JjR9oKjL2KH7tV6S0eKEjIBuQBAOFNuPJu3ouacmz9hgoXbNp+nusw3MVQmxZWFR9g==",
"dev": true,
"requires": {
"js-yaml": "^3.13.1",
"json5": "^2.1.1"
}
},
"@mrmlnc/readdir-enhanced": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz",
@ -1720,6 +1710,16 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"cacache": {
"version": "13.0.1",
"resolved": "https://registry.npmjs.org/cacache/-/cacache-13.0.1.tgz",
@ -1746,6 +1746,53 @@
"unique-filename": "^1.1.1"
}
},
"chalk": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz",
"integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
@ -1762,6 +1809,16 @@
"minipass": "^3.1.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"terser-webpack-plugin": {
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz",
@ -1778,6 +1835,18 @@
"terser": "^4.6.12",
"webpack-sources": "^1.4.3"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.3.0",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.3.0.tgz",
"integrity": "sha512-UDgni/tUVSdwHuQo+vuBmEgamWx88SuSlEb5fgdvHrlJSPB9qMBRF6W7bfPWSqDns425Gt1wxAUif+f+h/rWjg==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
}
},
@ -10953,87 +11022,6 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.1.2",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.2.tgz",
"integrity": "sha512-8QTxh+Fd+HB6fiL52iEVLKqE9N1JSlMXLR92Ijm6g8PZrwIxckgpqjPDWRP5TWxdiPaHR+alUWsnu1ShQOwt+Q==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": {
"version": "3.4.9",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.4.9.tgz",

@ -6,6 +6,7 @@
<select v-model="locale">
<option>en</option>
<option>es</option>
<option>fr</option>
<option>gr</option>
<option>hi</option>
<option>id</option>

@ -0,0 +1,376 @@
[
{
"title": "Développement Web pour les débutants : Quiz",
"complete": "Félicitations, vous avez terminé le quiz !",
"error": "Désolé, essayez encore",
"quizzes": [
{
"id": 1,
"title": "Leçon 1 - Introduction aux langages de programmation : quiz de pré-lecture",
"quiz": [
{
"questionText": "Un programme peut être créé sans que le créateur n'écrive de code",
"answerOptions": [
{
"answerText": "vrai",
"isCorrect": "true"
},
{
"answerText": "faux",
"isCorrect": "false"
}
]
},
{
"questionText": "Les langages de bas niveau sont un choix populaire pour",
"answerOptions": [
{
"answerText": "Les sites internet",
"isCorrect": "false"
},
{
"answerText": "Le Hardware",
"isCorrect": "true"
},
{
"answerText": "Les logiciels de jeux vidéo",
"isCorrect": "false"
}
]
},
{
"questionText": "Lequel de ces outils serait le plus susceptible de se trouver dans l'environnement d'un développeur Web ?",
"answerOptions": [
{
"answerText": "Du hardware, comme un Raspberry Pi",
"isCorrect": "false"
},
{
"answerText": "Des outils de développement de navigateur",
"isCorrect": "true"
},
{
"answerText": "De la documentation de système d'exploitation",
"isCorrect": "false"
}
]
}
]
},
{
"id": 2,
"title": "Leçon 1 - Introduction aux langages de programmation : quiz post-lecture",
"quiz": [
{
"questionText": "Quelle langue utiliseriez-vous le plus probablement pour créer un site Web ?",
"answerOptions": [
{
"answerText": "Langage machine",
"isCorrect": "false"
},
{
"answerText": "JavaScript",
"isCorrect": "true"
},
{
"answerText": "Bash",
"isCorrect": "false"
}
]
},
{
"questionText": "Les environnements de développement sont uniques à chaque développeur",
"answerOptions": [
{
"answerText": "vrai",
"isCorrect": "true"
},
{
"answerText": "faux",
"isCorrect": "false"
}
]
},
{
"questionText": "Que fera un développeur pour corriger un code bugué ?",
"answerOptions": [
{
"answerText": "Mise en évidence de la syntaxe",
"isCorrect": "false"
},
{
"answerText": "Débugage",
"isCorrect": "true"
},
{
"answerText": "Formatage du code",
"isCorrect": "false"
}
]
}
]
},
{
"id": 3,
"title": "Leçon 2 - Introduction à GitHub : quiz de pré-lecture",
"quiz": [
{
"questionText": "Comment créer un dépôt Git ?",
"answerOptions": [
{
"answerText": "git create",
"isCorrect": "false"
},
{
"answerText": "git start",
"isCorrect": "false"
},
{
"answerText": "git init",
"isCorrect": "true"
}
]
},
{
"questionText": "Que fait git add ?",
"answerOptions": [
{
"answerText": "Valide votre code",
"isCorrect": "false"
},
{
"answerText": "Ajoute vos fichiers à une zone de transit pour le suivi",
"isCorrect": "true"
},
{
"answerText": "Ajoute vos fichiers à GitHub",
"isCorrect": "false"
}
]
},
{
"questionText": "Comment vérifier si git est installé sur votre ordinateur ?",
"answerOptions": [
{
"answerText": "type git --version",
"isCorrect": "true"
},
{
"answerText": "type git --installed",
"isCorrect": "false"
},
{
"answerText": "type git --init",
"isCorrect": "false"
}
]
}
]
},
{
"id": 4,
"title": "Leçon 2 - Introduction à GitHub : quiz post-lecture",
"quiz": [
{
"questionText": "Un endroit pour comparer et discuter des différences introduites sur une branche avec des critiques, des commentaires, des tests intégrés, etc. est :",
"answerOptions": [
{
"answerText": "GitHub",
"isCorrect": "false"
},
{
"answerText": "Une Pull Request",
"isCorrect": "true"
},
{
"answerText": "Une branche de fonctionnalité",
"isCorrect": "false"
}
]
},
{
"questionText": "Comment obtiendriez-vous tous les commits d'une branche distante?",
"answerOptions": [
{
"answerText": "git fetch",
"isCorrect": "false"
},
{
"answerText": "git pull",
"isCorrect": "true"
},
{
"answerText": "git commits -r",
"isCorrect": "false"
}
]
},
{
"questionText": "Comment passer d'une branche à une autre?",
"answerOptions": [
{
"answerText": "git switch [nom de la branche]",
"isCorrect": "false"
},
{
"answerText": "git checkout [nom de la branche]",
"isCorrect": "true"
},
{
"answerText": "git load [nom de la branche]",
"isCorrect": "false"
}
]
}
]
},
{
"id": 5,
"title": "Leçon 3 - Création de pages Web accessibles : quiz de pré-lecture",
"quiz": [
{
"questionText": "Un site Web accessible peut être vérifié dans quel outil de navigateur",
"answerOptions": [
{
"answerText": "Lighthouse",
"isCorrect": "true"
},
{
"answerText": "Deckhouse",
"isCorrect": "false"
},
{
"answerText": "Cleanhouse",
"isCorrect": "true"
}
]
},
{
"questionText": "Vous avez besoin d'un lecteur d'écran physique pour tester l'accessibilité pour les utilisateurs malvoyants",
"answerOptions": [
{
"answerText": "vrai",
"isCorrect": "false"
},
{
"answerText": "faux",
"isCorrect": "true"
}
]
},
{
"questionText": "L'accessibilité n'est importante que sur les sites Web du gouvernement",
"answerOptions": [
{
"answerText": "vrai",
"isCorrect": "false"
},
{
"answerText": "faux",
"isCorrect": "true"
}
]
}
]
},
{
"id": 6,
"title": "Leçon 3 - Création de pages Web accessibles : quiz post-lecture",
"quiz": [
{
"questionText": "Lighthouse vérifie uniquement les problèmes d'accessibilité",
"answerOptions": [
{
"answerText": "vrai",
"isCorrect": "false"
},
{
"answerText": "faux",
"isCorrect": "true"
}
]
},
{
"questionText": "Les palettes les couleurs sans danger aident les gens à",
"answerOptions": [
{
"answerText": "daltonisme",
"isCorrect": "false"
},
{
"answerText": "déficiences visuelles",
"isCorrect": "false"
},
{
"answerText": "les deux ci-dessus",
"isCorrect": "true"
}
]
},
{
"questionText": "Les liens descriptifs sont essentiels pour les sites Web accessibles",
"answerOptions": [
{
"answerText": "vrai",
"isCorrect": "true"
},
{
"answerText": "faux",
"isCorrect": "false"
}
]
}
]
},
{
"id": 7,
"title": "Leçon 4 - Principes de base de JavaScript - Types de données : quiz pré-conférence",
"quiz": [
{
"questionText": "Les booléens sont un type de données que vous pouvez utiliser pour tester la longueur d'une chaîne",
"answerOptions": [
{
"answerText": "vrai",
"isCorrect": "false"
},
{
"answerText": "faux",
"isCorrect": "true"
}
]
},
{
"questionText": "Ce qui suit est une opération que vous pouvez effectuer sur une chaîne",
"answerOptions": [
{
"answerText": "concatenation",
"isCorrect": "true"
},
{
"answerText": "appending",
"isCorrect": "false"
},
{
"answerText": "splicing",
"isCorrect": "false"
}
]
},
{
"questionText": "== et === sont interchangeables",
"answerOptions": [
{
"answerText": "vrai",
"isCorrect": "false"
},
{
"answerText": "faux",
"isCorrect": "true"
}
]
}
]
}
]
}
]

@ -11,6 +11,7 @@ import es from './es.json';
import nl from './nl.json';
import zh_cn from './zh_cn.json';
import zh_tw from './zh_tw.json';
import fr from './fr.json';
//export const defaultLocale = 'en';
@ -28,6 +29,7 @@ const messages = {
nl: nl[0],
zh_cn: zh_cn[0],
zh_tw: zh_tw[0],
fr: fr[0],
};

Loading…
Cancel
Save