|
4 | 4 | import Comments from "../common/Comments.svelte"; |
5 | 5 | import User from "../common/User.svelte"; |
6 | 6 | import Tags from "../common/Tags.svelte"; |
| 7 | + import Loader from "../common/Loader.svelte"; |
7 | 8 | import QuestionTitle from "./QuestionTitle.svelte"; |
8 | 9 | import QuestionAnswers from "./QuestionAnswers.svelte"; |
9 | 10 | import QuestionIndices from "./QuestionIndices.svelte"; |
|
85 | 86 | title={question.title} |
86 | 87 | asked={question.creation_date} |
87 | 88 | active={question.last_activity_date} |
88 | | - viewed={question.view_count} /> |
| 89 | + viewed={question.view_count} |
| 90 | + {language} /> |
89 | 91 |
|
90 | 92 | <div class="row"> |
91 | 93 |
|
92 | 94 | <div class="left"> |
93 | 95 | <QuestionIndices |
94 | 96 | score={question.score} |
95 | | - favorite={question.favorite_count} /> |
| 97 | + favorite={question.favorite_count} |
| 98 | + {language} /> |
96 | 99 | </div> |
97 | 100 |
|
98 | 101 | <div class="right"> |
|
107 | 110 |
|
108 | 111 | <div class="question-answer-bottom"> |
109 | 112 | <div class="view-online"> |
110 | | - <a href={question.link} target="_blank">view online</a> |
| 113 | + <a href={question.link} target="_blank"> |
| 114 | + {language.text.view_online} |
| 115 | + </a> |
111 | 116 | </div> |
112 | 117 |
|
113 | 118 | <User |
114 | 119 | user={question.owner} |
115 | 120 | createdDate={question.creation_date} |
116 | | - isQuestion={true} /> |
| 121 | + isQuestion={true} |
| 122 | + {language} /> |
117 | 123 | </div> |
118 | 124 |
|
119 | 125 | {#if question.closed_details} |
120 | 126 | <QuestionClosed |
121 | 127 | details={question.closed_details} |
122 | 128 | reason={question.closed_reason} |
123 | | - closedDate={question.closed_date} /> |
| 129 | + closedDate={question.closed_date} |
| 130 | + {language} /> |
124 | 131 | {/if} |
125 | 132 |
|
126 | 133 | {#if question.notice} |
127 | 134 | <QuestionNotice notice={question.notice} /> |
128 | 135 | {/if} |
129 | 136 |
|
130 | | - <Comments comments={question.comments} /> |
| 137 | + <Comments comments={question.comments} {language} /> |
131 | 138 |
|
132 | 139 | </div> |
133 | 140 |
|
134 | 141 | </div> |
135 | 142 |
|
136 | 143 | <div class="answers-count-container"> |
137 | 144 | {#if question.answer_count > 0} |
138 | | - <h2>{question.answer_count} Answers</h2> |
| 145 | + <h2>{question.answer_count} {language.text.answers}</h2> |
139 | 146 | {:else} |
140 | | - <h2>No Answers</h2> |
| 147 | + <h2>{language.text.no_answers}</h2> |
141 | 148 | {/if} |
142 | 149 | </div> |
143 | 150 |
|
144 | 151 | {#if question.answer_count > 0} |
145 | 152 | <QuestionAnswers {questionId} {language} {vscode} /> |
146 | 153 | {/if} |
147 | 154 | {:else} |
148 | | - <p>Loading Question...</p> |
| 155 | + <Loader /> |
149 | 156 | {/if} |
0 commit comments