19 lines
439 B
TypeScript
19 lines
439 B
TypeScript
import { useTranslation } from "i18next-vue";
|
|
|
|
export const getVVCourseName = (courseType: string) => {
|
|
const { t } = useTranslation();
|
|
|
|
if (!["vv-de", "vv-it", "vv-fr"].includes(courseType)) {
|
|
return "";
|
|
}
|
|
|
|
const lookup: { [key: string]: string } = {
|
|
"vv-de": "Deutsch",
|
|
"vv-fr": "Français",
|
|
"vv-it": "Italiano",
|
|
};
|
|
|
|
const vv = t("a.Versicherungsvermittler/-in");
|
|
return `${vv} (${lookup[courseType]})`;
|
|
};
|