Files
CT/src/View/translations.ts
T

260 lines
5.7 KiB
TypeScript
Raw Normal View History

2024-07-19 23:45:07 +02:00
const englishTranslations = {
updater: {
migrated: "Migrated",
},
2024-07-19 23:45:07 +02:00
general: {
2024-07-20 03:34:54 +02:00
deleteItemButtonAudioLabel: "delete item",
2024-07-25 15:31:27 +02:00
searchButtonAudioLabel: "search",
2024-07-24 15:57:02 +02:00
abortButton: "Abort",
2024-07-27 19:13:59 +02:00
cancelButton: "Cancel",
2024-07-24 03:36:21 +02:00
closeButton: "Close",
backButton: "Back",
2024-07-24 15:57:02 +02:00
2024-07-27 19:13:59 +02:00
continueButton: "Continue",
confirmButton: "Confirm",
2024-07-24 03:36:21 +02:00
saveButton: "Save",
2024-07-20 17:30:36 +02:00
setButton: "Set",
2024-07-24 15:57:02 +02:00
fileVersionLabel: "Version",
2024-07-25 15:31:27 +02:00
searchLabel: "Search",
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-27 23:45:36 +02:00
transferDataButton: "Transfer Data",
2024-07-27 19:13:59 +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
2024-07-27 23:45:36 +02:00
dataTransferModal: {
transferDataHeadline: "Transfer Data",
selectionDescription: "Select the data that you want to transfer.",
2024-07-28 02:27:09 +02:00
dataEntryDescription: "Enter this data on the other device.",
2024-07-27 19:13:59 +02:00
///
fromThisDeviceButton: "From this device",
toThisDeviceButton: "To this device",
///
generalHeadline: "General",
connectionData: "Connection Data",
settingsData: "Settings Data",
2024-07-28 02:27:09 +02:00
2024-07-27 19:13:59 +02:00
chatsHeadline: "Chats",
///
transferChannelHeadline: "Transfer Chanel",
transferKeyHeadline: "Transfer Encryption Key",
2024-07-28 02:27:09 +02:00
sendButton: "Send",
///
sendingFiles: "Sending files...",
filesSentCount: (count: number) => `Files sent: ${count}`
2024-07-27 19:13:59 +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-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: {
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
},
message: {
2024-07-22 21:07:44 +02:00
messagesHeadline: "Messages",
2024-07-23 13:09:46 +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-24 15:57:02 +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
///
2024-07-24 13:59:42 +02:00
taskSettingsHeadline: "Edit Task",
2024-07-24 03:36:21 +02:00
taskNameLabel: "Title",
taskCategoryLabel: "Category",
taskStatusLabel: "Status",
taskPriorityLabel: "Priority",
taskDescriptionLabel: "Description",
taskDateLabel: "Date",
taskTimeLabel: "Time",
2024-07-24 14:10:09 +02:00
deleteTaskButton: "Delete task",
2024-07-25 02:49:23 +02:00
///
2024-07-25 15:31:27 +02:00
filterTasksHeadline: "Filter Tasks",
///
2024-07-26 03:29:07 +02:00
renameCategoryInputPlaceholder: "Rename category,",
2024-07-22 19:50:57 +02:00
},
2024-07-26 03:14:55 +02:00
calendar: {
todayButtonAudioLabel: "go to today",
previousMonthButtonAudioLabel: "previous month",
nextMonthButtonAudioLabel: "next month",
yearInputAudioLabel: "year",
monthInputAudioLabel: "month",
yearInputPlaceholder: "2000",
monthInputPlaceholder: "01",
2024-07-26 03:38:46 +02:00
///
2024-07-26 06:56:34 +02:00
searchEventsHeadline: "Search Events",
///
events: "Events",
noEvents: "No events",
2024-07-26 03:29:07 +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;