diff --git a/src/main.js b/src/main.js index 9dbaf23..b4399fe 100644 --- a/src/main.js +++ b/src/main.js @@ -11,6 +11,7 @@ const i18n = createI18n({ fallbackLocale: "en", messages: strings, }); +export default i18n; const app = createApp(App); diff --git a/src/store.js b/src/store.js index 9550763..b0c1ca0 100644 --- a/src/store.js +++ b/src/store.js @@ -1,6 +1,7 @@ import { computed } from "@vue/reactivity"; import { ref, watch } from "vue"; import router from "./router"; +import i18n from "./main"; export const lastRoute = ref(); export const loading = ref(false); @@ -85,7 +86,7 @@ export const parsedTimetable = computed(() => { if (!matchingLesson) { matchingLesson = { 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, }; } diff --git a/src/strings.js b/src/strings.js index e80dc47..1d0ae95 100644 --- a/src/strings.js +++ b/src/strings.js @@ -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.", }, notes: "Notes:", + configureTimetableGroup: + "Please configure a timetable group in the settings", }, days: { 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.", }, notes: "Anmerkung:", + configureTimetableGroup: + "Bitte wähle eine Stundenplan-Gruppe für diese Stunde in den Einstellungen aus", }, days: { sunday: "Sonntag",