Add translation strings for constants
This commit is contained in:
parent
cbd14abe65
commit
6701697556
|
|
@ -2,29 +2,29 @@ import type { RadioItem } from "@/components/learningPath/feedback.types";
|
||||||
|
|
||||||
export const YES_NO: RadioItem<boolean>[] = [
|
export const YES_NO: RadioItem<boolean>[] = [
|
||||||
{
|
{
|
||||||
name: "Ja",
|
name: "constants.yes",
|
||||||
value: true,
|
value: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Nein",
|
name: "constants.no",
|
||||||
value: false,
|
value: false,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
export const RATINGS: RadioItem<number>[] = [
|
export const RATINGS: RadioItem<number>[] = [
|
||||||
{
|
{
|
||||||
name: "sehr unzufrieden",
|
name: "constants.veryUnsatisfied",
|
||||||
value: 1,
|
value: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "unzufrieden",
|
name: "constants.unsatisfied",
|
||||||
value: 2,
|
value: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "zufrieden",
|
name: "constants.satisfied",
|
||||||
value: 3,
|
value: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "sehr zufrieden",
|
name: "constants.verySatisfied",
|
||||||
value: 4,
|
value: 4,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
class="py-10 text-xl flex-1 text-center cursor-pointer font-bold ui-checked:bg-sky-500 ui-not-checked:border hover:border-gray-500 hover:bg-gray-200"
|
class="py-10 text-xl flex-1 text-center cursor-pointer font-bold ui-checked:bg-sky-500 ui-not-checked:border hover:border-gray-500 hover:bg-gray-200"
|
||||||
>
|
>
|
||||||
<RadioGroupLabel as="span">
|
<RadioGroupLabel as="span">
|
||||||
{{ item.name }}
|
{{ $t(item.name) }}
|
||||||
</RadioGroupLabel>
|
</RadioGroupLabel>
|
||||||
</div>
|
</div>
|
||||||
</RadioGroupOption>
|
</RadioGroupOption>
|
||||||
|
|
|
||||||
|
|
@ -124,5 +124,13 @@
|
||||||
"instructorOpenFeedbackLabel": "Was ich dem Kursleiter sonst noch sagen wollte:",
|
"instructorOpenFeedbackLabel": "Was ich dem Kursleiter sonst noch sagen wollte:",
|
||||||
"courseNegativeFeedbackLabel": "Wo sehen Sie Verbesserungspotenzial?",
|
"courseNegativeFeedbackLabel": "Wo sehen Sie Verbesserungspotenzial?",
|
||||||
"coursePositiveFeedbackLabel": "Was hat Ihnen besonders gut gefallen?"
|
"coursePositiveFeedbackLabel": "Was hat Ihnen besonders gut gefallen?"
|
||||||
|
},
|
||||||
|
"constants": {
|
||||||
|
"yes": "Ja",
|
||||||
|
"no": "Nein",
|
||||||
|
"verySatisfied": "sehr zufrieden",
|
||||||
|
"satisfied": "zufrieden",
|
||||||
|
"unsatisfied": "unzufrieden",
|
||||||
|
"veryUnsatisfied": "sehr unzufrieden"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue