🌐 Add translation for configureTimetableGroup

This commit is contained in:
2022-09-30 18:00:33 +02:00
parent debe5025dd
commit ae4249f1f0
3 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,7 @@ const i18n = createI18n({
fallbackLocale: "en", fallbackLocale: "en",
messages: strings, messages: strings,
}); });
export default i18n;
const app = createApp(App); const app = createApp(App);

View File

@ -1,6 +1,7 @@
import { computed } from "@vue/reactivity"; import { computed } from "@vue/reactivity";
import { ref, watch } from "vue"; import { ref, watch } from "vue";
import router from "./router"; import router from "./router";
import i18n from "./main";
export const lastRoute = ref(); export const lastRoute = ref();
export const loading = ref(false); export const loading = ref(false);
@ -85,7 +86,7 @@ export const parsedTimetable = computed(() => {
if (!matchingLesson) { if (!matchingLesson) {
matchingLesson = { matchingLesson = {
subject: lesson.map((e) => e.subject).join(" / "), subject: lesson.map((e) => e.subject).join(" / "),
teacher: "Please configure a timetable group in the settings", teacher: i18n.global.t("timetable.configureTimetableGroup"),
length: lesson[0].length || 1, length: lesson[0].length || 1,
}; };
} }

View File

@ -38,6 +38,8 @@ export const strings = {
"Please select your class so you can view your timetable and only see substitutions that affect you. You can change this later in the settings.", "Please select your class so you can view your timetable and only see substitutions that affect you. You can change this later in the settings.",
}, },
notes: "Notes:", notes: "Notes:",
configureTimetableGroup:
"Please configure a timetable group in the settings",
}, },
days: { days: {
sunday: "Sunday", sunday: "Sunday",
@ -107,6 +109,8 @@ export const strings = {
"Bitte wähle eine Klasse aus, damit du deinen Stundenplan angezeigt bekommst und nur Vertretungen siehst, die dich betreffen. Du kannst deine Klasse später in den Einstellungen ändern.", "Bitte wähle eine Klasse aus, damit du deinen Stundenplan angezeigt bekommst und nur Vertretungen siehst, die dich betreffen. Du kannst deine Klasse später in den Einstellungen ändern.",
}, },
notes: "Anmerkung:", notes: "Anmerkung:",
configureTimetableGroup:
"Bitte wähle eine Stundenplan-Gruppe für diese Stunde in den Einstellungen aus",
}, },
days: { days: {
sunday: "Sonntag", sunday: "Sonntag",