chore: i18n
This commit is contained in:
		
							parent
							
								
									860a46712b
								
							
						
					
					
						commit
						3de391da9a
					
				
					 8 changed files with 43 additions and 14 deletions
				
			
		|  | @ -6,6 +6,10 @@ | ||||||
|     import type { AnswersResponse } from "@/controllers/answers"; |     import type { AnswersResponse } from "@/controllers/answers"; | ||||||
|     import type { AnswerData, AnswerDTO } from "@dwengo-1/common/interfaces/answer"; |     import type { AnswerData, AnswerDTO } from "@dwengo-1/common/interfaces/answer"; | ||||||
|     import authService from "@/services/auth/auth-service"; |     import authService from "@/services/auth/auth-service"; | ||||||
|  |     import { useI18n } from "vue-i18n"; | ||||||
|  |      | ||||||
|  |      | ||||||
|  |     const { t } = useI18n(); | ||||||
| 
 | 
 | ||||||
|     const props = defineProps<{ |     const props = defineProps<{ | ||||||
|         question: QuestionDTO; |         question: QuestionDTO; | ||||||
|  | @ -99,7 +103,7 @@ | ||||||
|             <input |             <input | ||||||
|                 v-model="answer" |                 v-model="answer" | ||||||
|                 type="text" |                 type="text" | ||||||
|                 placeholder="answer: ..." |                 :placeholder="t('answer-input-placeholder')" | ||||||
|                 class="answer-input" |                 class="answer-input" | ||||||
|             /> |             /> | ||||||
|             <button |             <button | ||||||
|  | @ -118,7 +122,7 @@ | ||||||
|                 @click="toggle()" |                 @click="toggle()" | ||||||
|                 class="toggle-answers-btn" |                 class="toggle-answers-btn" | ||||||
|             > |             > | ||||||
|                 {{ expanded ? "Hide Answers" : "Show Answers" }} |                 {{ expanded ? t("answers-toggle-hide") : t("answers-toggle-show") }} | ||||||
|             </button> |             </button> | ||||||
| 
 | 
 | ||||||
|             <div |             <div | ||||||
|  |  | ||||||
|  | @ -121,5 +121,11 @@ | ||||||
|     "invite": "einladen", |     "invite": "einladen", | ||||||
|     "assignmentIndicator": "AUFGABE", |     "assignmentIndicator": "AUFGABE", | ||||||
|     "searchAllLearningPathsTitle": "Alle Lernpfade durchsuchen", |     "searchAllLearningPathsTitle": "Alle Lernpfade durchsuchen", | ||||||
|     "searchAllLearningPathsDescription": "Nicht gefunden, was Sie gesucht haben? Klicken Sie hier, um unsere gesamte Lernpfad-Datenbank zu durchsuchen." |     "searchAllLearningPathsDescription": "Nicht gefunden, was Sie gesucht haben? Klicken Sie hier, um unsere gesamte Lernpfad-Datenbank zu durchsuchen.", | ||||||
|  |     "questions": "Fragen", | ||||||
|  |     "view-questions": "Fragen anzeigen auf ", | ||||||
|  |     "question-input-placeholder": "Frage...", | ||||||
|  |     "answer-input-placeholder": "Antwort...", | ||||||
|  |     "answers-toggle-hide": "Antworten verstecken", | ||||||
|  |     "answers-toggle-show": "Antworten anzeigen" | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ | ||||||
|     "teacher": "teacher", |     "teacher": "teacher", | ||||||
|     "assignments": "Assignments", |     "assignments": "Assignments", | ||||||
|     "classes": "Classes", |     "classes": "Classes", | ||||||
|     "discussions": "discussions", |     "discussions": "Discussions", | ||||||
|     "logout": "log out", |     "logout": "log out", | ||||||
|     "error_title": "Error", |     "error_title": "Error", | ||||||
|     "previous": "Previous", |     "previous": "Previous", | ||||||
|  | @ -121,5 +121,12 @@ | ||||||
|     "invite": "invite", |     "invite": "invite", | ||||||
|     "assignmentIndicator": "ASSIGNMENT", |     "assignmentIndicator": "ASSIGNMENT", | ||||||
|     "searchAllLearningPathsTitle": "Search all learning paths", |     "searchAllLearningPathsTitle": "Search all learning paths", | ||||||
|     "searchAllLearningPathsDescription": "You didn't find what you were looking for? Click here to search our whole database of available learning paths." |     "searchAllLearningPathsDescription": "You didn't find what you were looking for? Click here to search our whole database of available learning paths.", | ||||||
|  |     "questions": "questions", | ||||||
|  |     "view-questions": "View questions in ", | ||||||
|  |     "question-input-placeholder": "question...", | ||||||
|  |     "answer-input-placeholder": "answer...", | ||||||
|  |     "answers-toggle-hide": "Hide answers", | ||||||
|  |     "answers-toggle-show": "Show answers" | ||||||
|  | 
 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -121,5 +121,11 @@ | ||||||
|     "invite": "inviter", |     "invite": "inviter", | ||||||
|     "assignmentIndicator": "DEVOIR", |     "assignmentIndicator": "DEVOIR", | ||||||
|     "searchAllLearningPathsTitle": "Rechercher tous les parcours d'apprentissage", |     "searchAllLearningPathsTitle": "Rechercher tous les parcours d'apprentissage", | ||||||
|     "searchAllLearningPathsDescription": "Vous n'avez pas trouvé ce que vous cherchiez ? Cliquez ici pour rechercher dans toute notre base de données de parcours d'apprentissage disponibles." |     "searchAllLearningPathsDescription": "Vous n'avez pas trouvé ce que vous cherchiez ? Cliquez ici pour rechercher dans toute notre base de données de parcours d'apprentissage disponibles.", | ||||||
|  |     "questions": "Questions", | ||||||
|  |     "view-questions": "Voir les questions dans ", | ||||||
|  |     "question-input-placeholder": "question...", | ||||||
|  |     "answer-input-placeholder": "réponse...", | ||||||
|  |     "answers-toggle-hide": "Masquer réponses", | ||||||
|  |     "answers-toggle-show": "Afficher réponse" | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ | ||||||
|     "teacher": "leerkracht", |     "teacher": "leerkracht", | ||||||
|     "assignments": "Opdrachten", |     "assignments": "Opdrachten", | ||||||
|     "classes": "Klassen", |     "classes": "Klassen", | ||||||
|     "discussions": "discussies", |     "discussions": "Discussies", | ||||||
|     "logout": "log uit", |     "logout": "log uit", | ||||||
|     "error_title": "Fout", |     "error_title": "Fout", | ||||||
|     "previous": "Vorige", |     "previous": "Vorige", | ||||||
|  | @ -121,5 +121,11 @@ | ||||||
|     "invite": "uitnodigen", |     "invite": "uitnodigen", | ||||||
|     "assignmentIndicator": "OPDRACHT", |     "assignmentIndicator": "OPDRACHT", | ||||||
|     "searchAllLearningPathsTitle": "Alle leerpaden doorzoeken", |     "searchAllLearningPathsTitle": "Alle leerpaden doorzoeken", | ||||||
|     "searchAllLearningPathsDescription": "Niet gevonden waar je naar op zoek was? Klik hier om onze volledige databank van beschikbare leerpaden te doorzoeken." |     "searchAllLearningPathsDescription": "Niet gevonden waar je naar op zoek was? Klik hier om onze volledige databank van beschikbare leerpaden te doorzoeken.", | ||||||
|  |     "questions": "vragen", | ||||||
|  |     "view-questions": "Bekijk vragen in ", | ||||||
|  |     "question-input-placeholder": "vraag...", | ||||||
|  |     "answer-input-placeholder": "antwoord...", | ||||||
|  |     "answers-toggle-hide": "Verberg antwoorden", | ||||||
|  |     "answers-toggle-show": "Toon antwoorden" | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -34,7 +34,7 @@ | ||||||
|     <div class="d-flex flex-column h-100"> |     <div class="d-flex flex-column h-100"> | ||||||
|         <v-list-item> |         <v-list-item> | ||||||
|             <template v-slot:title> |             <template v-slot:title> | ||||||
|                 <div class="title">Discussions</div> |                 <div class="title">{{t("discussions")}}</div> | ||||||
|             </template> |             </template> | ||||||
|         </v-list-item> |         </v-list-item> | ||||||
|         <v-divider></v-divider> |         <v-divider></v-divider> | ||||||
|  |  | ||||||
|  | @ -201,7 +201,7 @@ | ||||||
|             <div class="d-flex flex-column h-100"> |             <div class="d-flex flex-column h-100"> | ||||||
|                 <v-list-item> |                 <v-list-item> | ||||||
|                     <template v-slot:title> |                     <template v-slot:title> | ||||||
|                         <div class="title">Discussions</div> |                         <div class="title">{{t("discussions")}}</div> | ||||||
|                     </template> |                     </template> | ||||||
|                 </v-list-item> |                 </v-list-item> | ||||||
|                 <v-divider></v-divider> |                 <v-divider></v-divider> | ||||||
|  |  | ||||||
|  | @ -336,7 +336,7 @@ | ||||||
|             <div class="input-wrapper"> |             <div class="input-wrapper"> | ||||||
|                 <input |                 <input | ||||||
|                     type="text" |                     type="text" | ||||||
|                     placeholder="question : ..." |                     :placeholder="t('question-input-placeholder')" | ||||||
|                     class="question-input" |                     class="question-input" | ||||||
|                     v-model="questionInput" |                     v-model="questionInput" | ||||||
|                 /> |                 /> | ||||||
|  | @ -372,13 +372,13 @@ | ||||||
|         > |         > | ||||||
|         <v-divider :thickness="6"></v-divider> |         <v-divider :thickness="6"></v-divider> | ||||||
|             <div class="question-header"> |             <div class="question-header"> | ||||||
|                 <span class="question-title">Questions</span> |                 <span class="question-title">{{t("questions")}}</span> | ||||||
|                 <span class="discussion-link-text"> |                 <span class="discussion-link-text"> | ||||||
|                     View questions in  |                     {{t("view-questions")}} | ||||||
|                     <router-link |                     <router-link | ||||||
|                         :to=discussionLink |                         :to=discussionLink | ||||||
|                     > |                     > | ||||||
|                         discussions |                         {{t("discussions")}} | ||||||
|                     </router-link> |                     </router-link> | ||||||
|                 </span> |                 </span> | ||||||
|             </div> |             </div> | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Timo De Meyst
						Timo De Meyst