2024-07-19 23:45:07 +02:00
|
|
|
const englishTranslations = {
|
|
|
|
|
general: {
|
2024-07-20 03:34:54 +02:00
|
|
|
deleteItemButtonAudioLabel: "delete item",
|
2024-07-24 03:36:21 +02:00
|
|
|
|
2024-07-21 20:21:32 +02:00
|
|
|
abortButton: "Abort",
|
2024-07-24 03:36:21 +02:00
|
|
|
closeButton: "Close",
|
|
|
|
|
|
2024-07-21 20:21:32 +02:00
|
|
|
confirmButton: "Confirm",
|
2024-07-24 03:36:21 +02:00
|
|
|
saveButton: "Save",
|
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",
|
|
|
|
|
|
|
|
|
|
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-21 17:55:53 +02:00
|
|
|
manageStorageButton: "Manage storage",
|
|
|
|
|
|
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",
|
|
|
|
|
},
|
|
|
|
|
|
2024-07-20 02:56:44 +02:00
|
|
|
connectionModal: {
|
|
|
|
|
connectionModalHeadline: "Manage Connections",
|
2024-07-19 23:45:07 +02:00
|
|
|
|
2024-07-20 01:14:21 +02:00
|
|
|
///
|
2024-07-20 03:39:47 +02:00
|
|
|
|
|
|
|
|
connectButtonAudioLabel: "connect",
|
2024-07-20 01:14:21 +02:00
|
|
|
},
|
2024-07-20 14:16:26 +02:00
|
|
|
|
2024-07-21 20:21:32 +02:00
|
|
|
storage: {
|
2024-07-21 19:44:10 +02:00
|
|
|
noItemSelected: "No item selected",
|
|
|
|
|
notAFile: "(not a file)",
|
|
|
|
|
contentEmpty: "(empty)",
|
|
|
|
|
|
|
|
|
|
path: "Path",
|
|
|
|
|
content: "Content",
|
2024-07-21 20:21:32 +02:00
|
|
|
|
2024-07-22 19:50:57 +02:00
|
|
|
deleteItem: "Delete item",
|
2024-07-21 19:44:10 +02:00
|
|
|
},
|
|
|
|
|
|
2024-07-20 14:16:26 +02:00
|
|
|
chatPage: {
|
2024-07-20 15:49:58 +02:00
|
|
|
closeChatAudioLabe: "close chat",
|
|
|
|
|
chatSettingsAudioLabel: "chat settings",
|
2024-07-20 16:28:00 +02:00
|
|
|
|
|
|
|
|
pages: {
|
|
|
|
|
settings: "Settings",
|
|
|
|
|
messages: "Messages",
|
2024-07-22 13:17:21 +02:00
|
|
|
tasks: "Tasks",
|
2024-07-20 16:28:00 +02:00
|
|
|
calendar: "Calendar",
|
|
|
|
|
},
|
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
|
|
|
},
|
2024-07-20 21:15:06 +02:00
|
|
|
|
|
|
|
|
message: {
|
2024-07-22 21:07:44 +02:00
|
|
|
messagesHeadline: "Messages",
|
|
|
|
|
|
2024-07-23 13:09:46 +02:00
|
|
|
///
|
|
|
|
|
|
2024-07-20 21:15:06 +02:00
|
|
|
composerInputPlaceholder: "Type a message...",
|
|
|
|
|
sendMessageButtonAudioLabel: "send message",
|
2024-07-21 13:13:41 +02:00
|
|
|
|
2024-07-23 13:09:46 +02:00
|
|
|
///
|
|
|
|
|
|
2024-07-21 13:13:41 +02:00
|
|
|
showMessageInfoButtonAudioLabel: "show message info",
|
|
|
|
|
messageInfoHeadline: "Message Info",
|
|
|
|
|
|
|
|
|
|
sentBy: "Sent by",
|
|
|
|
|
timeSent: "Time sent",
|
|
|
|
|
channel: "Channel",
|
|
|
|
|
messageContent: "Message content",
|
|
|
|
|
|
|
|
|
|
copyMessageButton: "Copy message",
|
|
|
|
|
resendMessageButton: "Resend message",
|
|
|
|
|
decryptMessageButton: "Decrypt message",
|
|
|
|
|
deleteMessageButton: "Delete message",
|
2024-07-21 17:55:53 +02:00
|
|
|
},
|
2024-07-22 19:50:57 +02:00
|
|
|
|
|
|
|
|
task: {
|
|
|
|
|
newBoardNamePlaceholder: "Create a board",
|
|
|
|
|
createBoardButtonAudioLabel: "create board",
|
2024-07-23 02:57:20 +02:00
|
|
|
|
2024-07-23 13:09:46 +02:00
|
|
|
///
|
|
|
|
|
|
2024-07-23 02:57:20 +02:00
|
|
|
noBoardSelected: "No board selected",
|
2024-07-23 13:51:27 +02:00
|
|
|
boardNotFound: "Board not found",
|
2024-07-23 13:09:46 +02:00
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
|
|
closeBoard: "close board",
|
|
|
|
|
showBoardSettingsButtonAudioLabel: "show board settigns",
|
|
|
|
|
|
2024-07-23 15:25:16 +02:00
|
|
|
listViewButtonAudioLabel: "list view",
|
|
|
|
|
kanbanViewButtonAudioLabel: "kanban view",
|
|
|
|
|
statusViewButtonAudioLabel: "status grid view",
|
|
|
|
|
|
|
|
|
|
filterTasksButtonAudioLabel: "filter tasks",
|
|
|
|
|
createTaskButtonAudioLabel: "create new task",
|
|
|
|
|
|
2024-07-23 13:09:46 +02:00
|
|
|
///
|
|
|
|
|
|
|
|
|
|
boardSettingsHeadline: "Board Settings",
|
|
|
|
|
boardNameInputLabel: "Board name",
|
2024-07-23 14:31:50 +02:00
|
|
|
deleteBoardButton: "Delete board and all tasks",
|
2024-07-24 03:36:21 +02:00
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
|
|
taskNameLabel: "Title",
|
|
|
|
|
|
|
|
|
|
taskCategoryLabel: "Category",
|
|
|
|
|
taskStatusLabel: "Status",
|
|
|
|
|
taskPriorityLabel: "Priority",
|
|
|
|
|
|
|
|
|
|
taskDescriptionLabel: "Description",
|
|
|
|
|
|
|
|
|
|
taskDateLabel: "Date",
|
|
|
|
|
taskTimeLabel: "Time",
|
2024-07-22 19:50:57 +02:00
|
|
|
},
|
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;
|