2024-07-19 23:45:07 +02:00
|
|
|
const englishTranslations = {
|
|
|
|
|
general: {
|
|
|
|
|
closeButton: "close",
|
|
|
|
|
},
|
|
|
|
|
|
2024-07-20 01:14:21 +02:00
|
|
|
regional: {
|
|
|
|
|
weekdays: {
|
|
|
|
|
full: [
|
|
|
|
|
"Sunday",
|
|
|
|
|
"Monday",
|
|
|
|
|
"Tuesday",
|
|
|
|
|
"Wednesday",
|
|
|
|
|
"Thursday",
|
|
|
|
|
"Friday",
|
|
|
|
|
"Saturday",
|
|
|
|
|
],
|
|
|
|
|
abbreviated: [
|
|
|
|
|
"Sun",
|
|
|
|
|
"Mon",
|
|
|
|
|
"Tue",
|
|
|
|
|
"Wed",
|
|
|
|
|
"Thu",
|
|
|
|
|
"Fri",
|
|
|
|
|
"Sat",
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
2024-07-19 23:45:07 +02:00
|
|
|
homePage: {
|
|
|
|
|
appName: "Comms",
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
|
|
overviewHeadline: "Overview",
|
|
|
|
|
|
2024-07-20 01:14:21 +02:00
|
|
|
serverAddress: "Server address",
|
2024-07-20 02:20:09 +02:00
|
|
|
serverAddressPlaceholder: "wss://192.168.0.69:3000",
|
2024-07-20 01:14:21 +02:00
|
|
|
connectAudioLabel: "connect to server",
|
|
|
|
|
disconnectAudioLabel: "disconnect from server",
|
|
|
|
|
manageConnectionsAudioLabel: "manage connections",
|
|
|
|
|
|
|
|
|
|
mailboxHeadline: "Server Mailbox",
|
|
|
|
|
mailboxDisabled: "Mailbox disabled. You will miss out on messages sent while you're away",
|
|
|
|
|
mailboxEnabled: "Mailbox enabled. If you disconnect, the server will keep your messages temporarily",
|
|
|
|
|
|
|
|
|
|
outboxHeadline: "Outbox",
|
|
|
|
|
outboxAllItemsSent: "All items sent",
|
|
|
|
|
|
|
|
|
|
yourNameLabel: "Your name",
|
2024-07-20 02:20:09 +02:00
|
|
|
yourNamePlaceholder: "Jane Doe",
|
2024-07-20 01:14:21 +02:00
|
|
|
setNameButton: "Set",
|
|
|
|
|
|
|
|
|
|
firstDayOfWeekLabel: "First day of week",
|
2024-07-19 23:45:07 +02:00
|
|
|
|
2024-07-20 00:15:05 +02:00
|
|
|
scrollToChatButton: "Chats",
|
|
|
|
|
|
2024-07-19 23:45:07 +02:00
|
|
|
///
|
|
|
|
|
|
2024-07-20 00:15:05 +02:00
|
|
|
backToOverviewAudioLabel: "go back to overview",
|
2024-07-19 23:45:07 +02:00
|
|
|
chatsHeadline: "Chats",
|
|
|
|
|
|
|
|
|
|
addChatAudioLabel: "name of new chat",
|
|
|
|
|
addChatPlaceholder: "Add chat",
|
|
|
|
|
addChatButton: "Add chat",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
settings: {
|
|
|
|
|
settingsHeadline: "Settings",
|
|
|
|
|
|
2024-07-20 01:14:21 +02:00
|
|
|
///
|
|
|
|
|
},
|
2024-07-19 23:45:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const allTranslations: { [language: string]: typeof englishTranslations } = {
|
|
|
|
|
en: englishTranslations,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const language = navigator.language.substring(0, 2);
|
|
|
|
|
export const translations = allTranslations[language] || allTranslations.en;
|