start home page and settings

This commit is contained in:
marlon-erler
2024-07-19 23:45:07 +02:00
parent 5da13eace5
commit eaaf4b813c
13 changed files with 349 additions and 301 deletions
+39
View File
@@ -0,0 +1,39 @@
const englishTranslations = {
general: {
closeButton: "close",
},
homePage: {
appName: "Comms",
///
overviewHeadline: "Overview",
statusHeadline: "Status",
settingsButton: "Settings",
///
chatsHeadline: "Chats",
addChatAudioLabel: "name of new chat",
addChatPlaceholder: "Add chat",
addChatButton: "Add chat",
},
settings: {
settingsHeadline: "Settings",
///
}
};
const allTranslations: { [language: string]: typeof englishTranslations } = {
en: englishTranslations,
};
const language = navigator.language.substring(0, 2);
export const translations = allTranslations[language] || allTranslations.en;