Skip to content

Commit

Permalink
tests: add German translations
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalinDe committed Nov 23, 2023
1 parent f632702 commit e48601f
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions web/frontend/src/mocks/mockData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ const mockRoster: string[] = [
];

const mockForm1: any = {
Title: { En: 'Life on the campus', Fr: 'Vie sur le campus', De: 'Life on the campus' },
Title: { En: 'Life on the campus', Fr: 'Vie sur le campus', De: 'Leben auf dem Campus' },
Scaffold: [
{
ID: (0xa2ab).toString(),
Title: { En: 'Rate the course', Fr: 'Note la course', De: 'Rate the course' },
Title: { En: 'Rate the course', Fr: 'Note la course', De: 'Bewerten Sie den Kurs' },
Order: [(0x3fb2).toString(), (0x41e2).toString(), (0xcd13).toString(), (0xff31).toString()],
Subjects: [
{
Title: {
En: 'Let s talk about the food',
Fr: 'Parlons de la nourriture',
De: 'Let s talk about food',
De: 'Sprechen wir über das Essen',
},
ID: (0xff31).toString(),
Order: [(0xa319).toString(), (0x19c7).toString()],
Expand All @@ -45,15 +45,15 @@ const mockForm1: any = {
Title: {
En: 'Select your ingredients',
Fr: 'Choisi tes ingrédients',
De: 'Select your ingredients',
De: 'Wählen Sie Ihre Zutaten aus',
},
ID: (0xa319).toString(),
MaxN: 2,
MinN: 1,
Choices: [
'{"en": "tomato", "fr": "tomate", "de": "tomato"}',
'{"en": "salad", "fr": "salade", "de": "salad"}',
'{"en": "onion", "fr": "oignon", "de": "onion"}',
'{"en": "tomato", "fr": "tomate", "de": "Tomate"}',
'{"en": "salad", "fr": "salade", "de": "Salat"}',
'{"en": "onion", "fr": "oignon", "de": "Zwiebel"}',
],
Hint: { En: '', Fr: '', De: '' },
},
Expand All @@ -63,7 +63,7 @@ const mockForm1: any = {
Title: {
En: 'Rank the cafeteria',
Fr: 'Ordonne les cafet',
De: 'Rank the cafeteria',
De: 'Ordnen Sie die Mensen',
},
ID: (0x19c7).toString(),
MaxN: 3,
Expand All @@ -84,7 +84,7 @@ const mockForm1: any = {
Title: {
En: 'How did you find the provided material, from 1 (bad) to 5 (excellent) ?',
Fr: 'Comment trouves-tu le matériel fourni, de 1 (mauvais) à 5 (excellent) ?',
De: 'How did you find the provided material, from 1 (bad) to 5 (excellent) ?',
De: 'Wie bewerten Sie das vorhandene Material, von 1 (schlecht) bis 5 (exzellent)?',
},
ID: (0x3fb2).toString(),
MaxN: 1,
Expand All @@ -102,20 +102,20 @@ const mockForm1: any = {
Title: {
En: 'How did you find the teaching ?',
Fr: 'Comment trouves-tu l enseignement ?',
De: 'How did you find the teaching ?',
De: 'Wie fanden Sie den Unterricht?',
},
ID: (0x41e2).toString(),
MaxN: 1,
MinN: 1,
Choices: [
'{"en" : "bad", "fr": "mauvais", "de": "bad"}',
'{"en" : "normal", "fr": "normal", "de": "normal"}',
'{"en" : "good", "fr": "super", "de": "good"}',
'{"en" : "bad", "fr": "mauvais", "de": "schlecht"}',
'{"en" : "normal", "fr": "normal", "de": "durchschnittlich"}',
'{"en" : "good", "fr": "super", "de": "gut"}',
],
Hint: {
En: 'Be honest. This is anonymous anyway',
Fr: 'Sois honnête. C est anonyme de toute façon',
De: 'Be honest. This is anonymous anyway',
De: 'Seien Sie ehrlich. Es bleibt anonym',
},
},
],
Expand All @@ -124,7 +124,7 @@ const mockForm1: any = {
Title: {
En: 'Who were the two best TAs ?',
Fr: 'Quels sont les deux meilleurs TA ?',
De: 'Who were the two best TAs ?',
De: 'Wer waren die beiden besten TutorInnen?',
},
ID: (0xcd13).toString(),
MaxLength: 20,
Expand Down Expand Up @@ -169,19 +169,19 @@ const mockFormResult12: Results = {
};

const mockForm2: any = {
Title: { En: 'Please give your opinion', Fr: 'Donne ton avis', De: 'Please give your opinion' },
Title: { En: 'Please give your opinion', Fr: 'Donne ton avis', De: 'Bitte sagen Sie Ihre Meinung' },

Check failure on line 172 in web/frontend/src/mocks/mockData.ts

View workflow job for this annotation

GitHub Actions / Web frontend Lint

Replace `·En:·'Please·give·your·opinion',·Fr:·'Donne·ton·avis',·De:·'Bitte·sagen·Sie·Ihre·Meinung'` with `⏎····En:·'Please·give·your·opinion',⏎····Fr:·'Donne·ton·avis',⏎····De:·'Bitte·sagen·Sie·Ihre·Meinung',⏎·`
Scaffold: [
{
ID: (0xa2ab).toString(),
Title: { En: 'Rate the course', Fr: 'Note le cours', De: 'Rate the course' },
Title: { En: 'Rate the course', Fr: 'Note le cours', De: 'Bewerten Sie den Kurs' },
Order: [(0x3fb2).toString(), (0xcd13).toString()],

Selects: [
{
Title: {
En: 'How did you find the provided material, from 1 (bad) to 5 (excellent) ?',
Fr: 'Comment trouves-tu le matériel fourni, de 1 (mauvais) à 5 (excellent) ?',
De: 'How did you find the provided material, from 1 (bad) to 5 (excellent) ?',
De: 'Wie bewerten Sie das vorhandene Material, von 1 (schlecht) zu 5 (exzellent)?',
},
ID: (0x3fb2).toString(),
MaxN: 1,
Expand All @@ -201,7 +201,7 @@ const mockForm2: any = {
Title: {
En: 'Who were the two best TAs ?',
Fr: 'Quels sont les deux meilleurs TA ?',
De: 'Who were the two best TAs ?',
De: 'Wer waren die beiden besten TutorInnen?',
},
ID: (0xcd13).toString(),
MaxLength: 40,
Expand All @@ -221,23 +221,23 @@ const mockForm2: any = {
},
{
ID: (0x1234).toString(),
Title: { En: 'Tough choices', Fr: 'Choix difficiles', De: 'Tough choices' },
Title: { En: 'Tough choices', Fr: 'Choix difficiles', De: 'Schwierige Entscheidungen' },
Order: [(0xa319).toString(), (0xcafe).toString(), (0xbeef).toString()],
Selects: [
{
Title: {
En: 'Select your ingredients',
Fr: 'Choisis tes ingrédients',
De: 'Select your ingredients',
De: 'Wählen Sie Ihre Zutaten',
},
ID: (0xa319).toString(),
MaxN: 3,
MinN: 0,
Choices: [
'{"en": "tomato", "fr": "tomate", "de": "tomato"}',
'{"en": "salad", "fr": "salade", "de": "salad"}',
'{"en": "onion", "fr": "oignon", "de": "onion"}',
'{"en": "falafel", "fr": "falafel", "de": "falafel"}',
'{"en": "tomato", "fr": "tomate", "de": "Tomate"}',
'{"en": "salad", "fr": "salade", "de": "Salat"}',
'{"en": "onion", "fr": "oignon", "de": "Zwiebel"}',
'{"en": "falafel", "fr": "falafel", "de": "Falafel"}',
],
Hint: { En: '', Fr: '', De: '' },
},
Expand All @@ -248,7 +248,7 @@ const mockForm2: any = {
Title: {
En: 'Which cafeteria serves the best coffee ?',
Fr: 'Quelle cafétéria sert le meilleur café ?',
De: 'Which cafeteria serves the best coffee ?',
De: 'Welches Café bietet den besten Kaffee an?',
},
ID: (0xcafe).toString(),
MaxN: 4,
Expand All @@ -262,15 +262,15 @@ const mockForm2: any = {
Hint: { En: '', Fr: '', De: '' },
},
{
Title: { En: 'IN or SC ?', Fr: 'IN ou SC ?', De: 'IN or SC ?' },
Title: { En: 'IN or SC ?', Fr: 'IN ou SC ?', De: 'IN oder SC?' },
ID: (0xbeef).toString(),
MaxN: 2,
MinN: 1,
Choices: ['{"en": "IN", "fr": "IN", "de": "IN"}', '{"en": "SC", "fr": "SC", "de": "SC"}'],
Hint: {
En: 'The right answer is IN ;-)',
Fr: 'La bonne réponse est IN ;-)',
De: 'The right answer is IN ;-)',
De: 'Die korrekte Antwort ist IN ;-)',
},
},
],
Expand All @@ -285,7 +285,7 @@ const mockForm3: any = {
Scaffold: [
{
ID: '3cVHIxpx',
Title: { En: 'Choose your lunch', Fr: 'Choisis ton déjeuner', De: 'Choose your lunch' },
Title: { En: 'Choose your lunch', Fr: 'Choisis ton déjeuner', De: 'Wählen Sie Ihr Mittagessen' },

Check failure on line 288 in web/frontend/src/mocks/mockData.ts

View workflow job for this annotation

GitHub Actions / Web frontend Lint

Replace `·En:·'Choose·your·lunch',·Fr:·'Choisis·ton·déjeuner',·De:·'Wählen·Sie·Ihr·Mittagessen'` with `⏎········En:·'Choose·your·lunch',⏎········Fr:·'Choisis·ton·déjeuner',⏎········De:·'Wählen·Sie·Ihr·Mittagessen',⏎·····`
Order: ['PGP'],
Ranks: [],
Selects: [],
Expand All @@ -295,7 +295,7 @@ const mockForm3: any = {
Title: {
En: 'Select what you want',
Fr: 'Choisis ce que tu veux',
De: 'Select what you want',
De: 'Wählen Sie aus was Sie wünschen',
},
MaxN: 4,
MinN: 0,
Expand All @@ -305,12 +305,12 @@ const mockForm3: any = {
'{"en": "Firstname", "fr": "Prénom", "de": "Firstname"}',
'{"en": "Main 🍕", "fr" : "Principal 🍕", "de": "Main 🍕"}',
'{"en": "Drink 🧃", "fr": "Boisson 🧃", "de": "Drink 🧃"}',
'{"en":"Dessert 🍰", "fr": "Dessert 🍰", "de": "Dessert 🍰"}',
'{"en":"Dessert 🍰", "fr": "Dessert 🍰", "de": "Nachtisch 🍰"}',
],
Hint: {
En: 'If you change opinion call me before 11:30 a.m.',
Fr: "Si tu changes d'avis appelle moi avant 11h30",
De: 'If you change opinion call me before 11:30 a.m.',
De: 'Wenn Sie Ihre Meinung ändern, rufen Sie mich vor 11:30 an',
},
},
],
Expand Down

0 comments on commit e48601f

Please sign in to comment.