Files
CT/src/View/translations.ts
T

137 lines
3.2 KiB
TypeScript
Raw Normal View History

2024-07-19 23:45:07 +02:00
const englishTranslations = {
general: {
2024-07-21 13:13:41 +02:00
closeButton: "Close",
2024-07-20 03:34:54 +02:00
deleteItemButtonAudioLabel: "delete item",
abortButton: "Abort",
confirmButton: "Confirm",
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",
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",
},
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
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: {
composerInputPlaceholder: "Type a message...",
sendMessageButtonAudioLabel: "send message",
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-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;