2024-07-07 19:21:08 +02:00
|
|
|
const englishTranslations = {
|
2024-07-07 22:11:18 +02:00
|
|
|
// general
|
2024-07-09 17:23:29 +02:00
|
|
|
set: "Set",
|
2024-07-09 14:28:13 +02:00
|
|
|
back: "Back",
|
2024-07-09 17:23:29 +02:00
|
|
|
undoChanges: "Undo changes",
|
|
|
|
|
close: "Close",
|
2024-07-07 22:11:18 +02:00
|
|
|
|
2024-07-09 14:11:20 +02:00
|
|
|
// overview
|
|
|
|
|
overview: "Overview",
|
|
|
|
|
|
2024-07-07 22:11:18 +02:00
|
|
|
connection: "Connection",
|
2024-07-09 15:15:17 +02:00
|
|
|
chats: "Chats",
|
2024-07-09 14:11:20 +02:00
|
|
|
|
2024-07-09 17:23:29 +02:00
|
|
|
encryptionUnavailableTitle: "Encryption is not available",
|
|
|
|
|
encryptionUnavailableMessage:
|
|
|
|
|
"Obtain this app via HTTPS or continue without encryption",
|
|
|
|
|
|
2024-07-07 22:11:18 +02:00
|
|
|
serverAddress: "Server Address",
|
2024-07-08 01:53:00 +02:00
|
|
|
serverAddressPlaceholder: "wss://192.168.0.69:3000",
|
2024-07-09 14:11:20 +02:00
|
|
|
|
2024-07-07 22:11:18 +02:00
|
|
|
connectToServer: "Connect",
|
2024-07-08 13:35:26 +02:00
|
|
|
disconnect: "Disonnect",
|
2024-07-09 17:23:29 +02:00
|
|
|
|
|
|
|
|
mailbox: "Mailbox",
|
|
|
|
|
requestMailbox: "Enable",
|
|
|
|
|
deleteMailbox: "Disable",
|
|
|
|
|
mailboxExplanation:
|
|
|
|
|
"When you're disconnected, messages will be kept on the server temporarily",
|
2024-07-09 15:15:17 +02:00
|
|
|
|
|
|
|
|
newChatPrimaryChannel: "Primary channel",
|
|
|
|
|
newChatNamePlaceholder: "my-channel",
|
|
|
|
|
addChat: "Add",
|
|
|
|
|
removeChat: "Remove chat",
|
2024-07-09 14:11:20 +02:00
|
|
|
|
2024-07-09 17:23:29 +02:00
|
|
|
// messages
|
|
|
|
|
showChatOptions: "show chat options",
|
|
|
|
|
configureChatTitle: "Configure Chat",
|
|
|
|
|
|
2024-07-07 22:11:18 +02:00
|
|
|
primaryChannel: "Primary channel",
|
2024-07-09 17:23:29 +02:00
|
|
|
primaryChannelPlaceholder: "my-channel",
|
|
|
|
|
|
|
|
|
|
secondaryChannel: "Secondary channel",
|
|
|
|
|
secondaryChannelPlaceholder: "Add secondary channel",
|
2024-07-07 22:11:18 +02:00
|
|
|
addSecondaryChannel: "Add secondary channel",
|
|
|
|
|
removeSecondaryChannel: "Remove secondary channel",
|
2024-07-09 17:23:29 +02:00
|
|
|
|
2024-07-07 22:11:18 +02:00
|
|
|
encryptionKey: "Encryption key",
|
2024-07-09 17:23:29 +02:00
|
|
|
encryptionKeyPlaceholder: "n10d2482dg283hg",
|
|
|
|
|
|
|
|
|
|
noChatSelected: "No chat selected",
|
2024-07-07 19:21:08 +02:00
|
|
|
|
2024-07-07 22:11:18 +02:00
|
|
|
composerPlaceholder: "Type a message...",
|
2024-07-08 00:39:22 +02:00
|
|
|
sendMessage: "Send",
|
2024-07-08 12:50:54 +02:00
|
|
|
|
|
|
|
|
decryptMessage: "Decrypt message",
|
2024-07-08 12:34:37 +02:00
|
|
|
copyMessage: "Copy message",
|
|
|
|
|
deleteMessage: "Delete message",
|
2024-07-07 19:21:08 +02:00
|
|
|
};
|
|
|
|
|
|
2024-07-08 02:50:10 +02:00
|
|
|
const allTranslations: { [key: string]: typeof englishTranslations } = {
|
2024-07-07 19:21:08 +02:00
|
|
|
en: englishTranslations,
|
|
|
|
|
};
|
|
|
|
|
|
2024-07-07 22:11:18 +02:00
|
|
|
const language = navigator.language.substring(0, 2);
|
|
|
|
|
export const translation: typeof englishTranslations =
|
|
|
|
|
allTranslations[language] ?? allTranslations.en;
|