Files
CT/src/View/translations.ts
T

115 lines
2.8 KiB
TypeScript
Raw Normal View History

2024-07-19 23:45:07 +02:00
const englishTranslations = {
general: {
2024-07-20 03:34:54 +02:00
closeButtonAudioLabel: "close",
deleteItemButtonAudioLabel: "delete item",
2024-07-20 19:18:19 +02:00
2024-07-20 17:30:36 +02:00
setButton: "Set",
2024-07-19 23:45:07 +02:00
},
2024-07-20 01:14:21 +02:00
regional: {
weekdays: {
full: [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
],
2024-07-20 16:28:00 +02:00
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
2024-07-20 01:14:21 +02:00
},
},
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",
2024-07-20 16:28:00 +02:00
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",
2024-07-20 01:14:21 +02:00
outboxHeadline: "Outbox",
outboxAllItemsSent: "All items sent",
yourNameLabel: "Your name",
2024-07-20 02:20:09 +02:00
yourNamePlaceholder: "Jane Doe",
2024-07-20 17:30:36 +02:00
setNameButtonAudioLabel: "set name",
2024-07-20 01:14:21 +02:00
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",
},
connectionModal: {
connectionModalHeadline: "Manage Connections",
2024-07-19 23:45:07 +02:00
2024-07-20 01:14:21 +02:00
///
connectButtonAudioLabel: "connect",
2024-07-20 01:14:21 +02:00
},
2024-07-20 14:16:26 +02:00
chatPage: {
closeChatAudioLabe: "close chat",
chatSettingsAudioLabel: "chat settings",
2024-07-20 16:28:00 +02:00
pages: {
settings: "Settings",
messages: "Messages",
allObjects: "All objects",
kanban: "Kanban",
calendar: "Calendar",
progress: "Progress",
},
2024-07-20 17:19:10 +02:00
settings: {
settingsHeadline: "Settings",
2024-07-20 17:30:36 +02:00
primaryChannelLabel: "Primary channel",
setPrimaryChannelButtonAudioLabel: "set primary channel",
2024-07-20 18:49:05 +02:00
newSecondaryChannelPlaceholder: "Add secondary channel",
newSecondaryChannelAudioLabel: "name of new secondary channel",
addSecondaryChannelButtonAudioLabel: "add secondary channel",
2024-07-20 19:18:19 +02:00
encryptionKeyLabel: "Encryption key",
setEncryptionKeyButtonAudioLabel: "set encryption key",
showEncryptionKey: "Show encryption key",
2024-07-20 20:48:13 +02:00
deleteChatButton: "Delete entire chat",
2024-07-20 19:18:19 +02:00
},
message: {
composerInputPlaceholder: "Type a message...",
sendMessageButtonAudioLabel: "send message",
}
2024-07-20 16:28:00 +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;