🌐 Add Localization feature

This commit is contained in:
2022-08-21 16:57:06 +02:00
parent 710a07b04b
commit 59a2c0eacb
17 changed files with 301 additions and 123 deletions

71
src/strings.js Normal file
View File

@ -0,0 +1,71 @@
export const strings = {
en: {
title: {
timetable: "Timetable",
substitutions: "Substitutions",
history: "History",
settings: "Settings",
login: "Login",
},
settings: {
heading: {
filtering: "Filtering",
timetableGroups: "Timetable Groups",
language: "Language",
about: "About",
},
text: {
filtering:
"Select a class here so the correct timetable is used and only relevant substitutions are shown.",
timetableGroups:
"A timetable group defines, which lesson should be displayed, and which substitution should be shown if there are multiple possibilities for a single lesson within one class.",
language: "Change the language of all texts in the application",
about:
"This Tool queries and parses the latest timetable data every minute. The correctness of the data can in no way be guaranteed, so please check the data against the official plan if something seems wrong! Due to the format of the plan files, it it sometimes not easily possible to extract the correct data, so the plan displayed here may not be correct.",
},
other: "Other",
none: "None",
version: "Version",
},
timetable: {
warning: "Warning:",
trustWarning:
"The Data source of the Timetable data ({source}) is not trustworthy, which means the timetable may be incorrect!",
setup: {
title: "No class selected",
prompt: "Select a class",
description:
"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:",
},
days: {
sunday: "Sunday",
monday: "Monday",
tuesday: "Tuesday",
wednesday: "Wednesday",
thursday: "Thursday",
friday: "Friday",
saturday: "Saturday",
},
substitution: {
text: {
withClass: {
subjectChange:
"Lesson changed for {class} in {subject} with {teacher} in room {room}",
teacherChange: "Lesson for {class} in {subject} now with {teacher}",
roomChange:
"Room for lesson {subject} for {class} with {teacher} is now {room}",
cancellation: "Lesson for {class} with {teacher} is cancelled",
},
withoutClass: {
subjectChange:
"Lesson changed in {subject} with {teacher} in room {room}",
teacherChange: "Lesson in {subject} now with {teacher}",
roomChange: "Room for lesson {subject} with {teacher} is now {room}",
cancellation: "Lesson with {teacher} is cancelled",
},
},
},
},
};