2024-07-07 19:21:08 +02:00
|
|
|
const englishTranslations = {
|
2024-07-07 22:11:18 +02:00
|
|
|
// general
|
|
|
|
|
setInput: "Set",
|
2024-07-09 14:28:13 +02:00
|
|
|
back: "Back",
|
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",
|
|
|
|
|
communication: "Communication",
|
|
|
|
|
encryption: "Encryption",
|
2024-07-09 14:11:20 +02:00
|
|
|
|
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 14:11:20 +02:00
|
|
|
resetAddress: "Reset address",
|
|
|
|
|
|
|
|
|
|
noChatSelected: "No chat selected",
|
|
|
|
|
|
2024-07-07 22:11:18 +02:00
|
|
|
primaryChannel: "Primary channel",
|
2024-07-08 02:44:23 +02:00
|
|
|
leaveChannel: "Leave",
|
2024-07-07 22:11:18 +02:00
|
|
|
channelPlaceholder: "my-channel",
|
|
|
|
|
addSecondaryChannel: "Add secondary channel",
|
|
|
|
|
removeSecondaryChannel: "Remove secondary channel",
|
|
|
|
|
newSecondaryChannelPlaceholder: "Add secondary channel",
|
|
|
|
|
encryptionKey: "Encryption key",
|
|
|
|
|
encryptionKeyPlaceholder: "1jg028ej40d",
|
|
|
|
|
showEncryptionKey: "Show encryption key",
|
2024-07-08 03:01:24 +02:00
|
|
|
myName: "My Name",
|
2024-07-07 22:11:18 +02:00
|
|
|
yourNamePlaceholder: "Jane Doe",
|
2024-07-09 00:28:07 +02:00
|
|
|
mailbox: "Mailbox",
|
|
|
|
|
requestMailbox: "Enable",
|
|
|
|
|
deleteMailbox: "Disable",
|
|
|
|
|
mailboxExplanation:
|
2024-07-09 02:31:22 +02:00
|
|
|
"When you're disconnected, messages will be kept on the server temporarily",
|
2024-07-07 19:21:08 +02:00
|
|
|
|
|
|
|
|
// messages
|
2024-07-07 22:11:18 +02:00
|
|
|
messages: "Messages",
|
|
|
|
|
composerPlaceholder: "Type a message...",
|
2024-07-08 00:39:22 +02:00
|
|
|
sendMessage: "Send",
|
|
|
|
|
clearHistory: "Clear history",
|
|
|
|
|
encryptionUnavailableTitle: "Encryption is not available",
|
|
|
|
|
encryptionUnavailableMessage:
|
2024-07-08 02:50:10 +02:00
|
|
|
"Obtain this app via HTTPS or continue without encryption",
|
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-08 03:01:24 +02:00
|
|
|
es: {
|
|
|
|
|
// general
|
|
|
|
|
setInput: "OK",
|
|
|
|
|
|
|
|
|
|
// settings
|
2024-07-09 14:11:20 +02:00
|
|
|
overview: "Configuración",
|
2024-07-08 03:01:24 +02:00
|
|
|
connection: "Conexión",
|
|
|
|
|
communication: "Comunicación",
|
|
|
|
|
encryption: "Cifrado",
|
|
|
|
|
serverAddress: "Dirección del servidor",
|
|
|
|
|
serverAddressPlaceholder: "wss://192.168.0.69:3000",
|
|
|
|
|
connectToServer: "Conectar",
|
2024-07-08 13:35:26 +02:00
|
|
|
disconnect: "Desconectar",
|
2024-07-08 03:01:24 +02:00
|
|
|
primaryChannel: "Canal principal",
|
|
|
|
|
leaveChannel: "Salir",
|
|
|
|
|
channelPlaceholder: "mi-canal",
|
|
|
|
|
addSecondaryChannel: "Añadir canal segundario",
|
|
|
|
|
removeSecondaryChannel: "Eliminar canal segundario",
|
|
|
|
|
newSecondaryChannelPlaceholder: "Añadir canal segundario",
|
|
|
|
|
encryptionKey: "Clave de cifrada",
|
|
|
|
|
encryptionKeyPlaceholder: "1jg028ej40d",
|
|
|
|
|
showEncryptionKey: "Mostrar clave de cifrado",
|
|
|
|
|
myName: "Mi nombre",
|
|
|
|
|
yourNamePlaceholder: "Juan Pérez",
|
2024-07-09 00:28:07 +02:00
|
|
|
mailbox: "Buzón",
|
|
|
|
|
requestMailbox: "Activar",
|
|
|
|
|
deleteMailbox: "Desactivar",
|
|
|
|
|
mailboxExplanation:
|
2024-07-09 02:31:22 +02:00
|
|
|
"Si estás sin conexión, los mensajes se guardarán temporalmente en el servidor",
|
2024-07-08 03:01:24 +02:00
|
|
|
|
|
|
|
|
// messages
|
|
|
|
|
messages: "Mensajes",
|
|
|
|
|
composerPlaceholder: "Escribe un mensaje...",
|
|
|
|
|
sendMessage: "Enviar",
|
|
|
|
|
clearHistory: "Borrar historial",
|
2024-07-08 03:05:06 +02:00
|
|
|
encryptionUnavailableTitle: "Cifrado no disponible",
|
2024-07-08 03:01:24 +02:00
|
|
|
encryptionUnavailableMessage:
|
2024-07-08 03:05:06 +02:00
|
|
|
"Obtén esta página a través de HTTPS para cifrar o continúa sin cifrado",
|
2024-07-08 12:52:54 +02:00
|
|
|
|
|
|
|
|
decryptMessage: "Descifrar mensaje",
|
|
|
|
|
copyMessage: "Copiar mensaje",
|
|
|
|
|
deleteMessage: "Eliminar mensaje",
|
2024-07-08 03:01:24 +02:00
|
|
|
},
|
2024-07-08 02:50:10 +02:00
|
|
|
de: {
|
|
|
|
|
// general
|
|
|
|
|
setInput: "OK",
|
|
|
|
|
|
|
|
|
|
// settings
|
2024-07-09 14:11:20 +02:00
|
|
|
overview: "Einstellungen",
|
2024-07-08 02:50:10 +02:00
|
|
|
connection: "Verbindung",
|
|
|
|
|
communication: "Kommunikation",
|
|
|
|
|
encryption: "Verschlüsselung",
|
|
|
|
|
serverAddress: "Serveraddresse",
|
|
|
|
|
serverAddressPlaceholder: "wss://192.168.0.69:3000",
|
|
|
|
|
connectToServer: "Verbinden",
|
2024-07-08 13:35:26 +02:00
|
|
|
disconnect: "Trennen",
|
2024-07-08 02:50:10 +02:00
|
|
|
primaryChannel: "Hauptkanal",
|
|
|
|
|
leaveChannel: "Verlassen",
|
|
|
|
|
channelPlaceholder: "mein-kanal",
|
|
|
|
|
addSecondaryChannel: "Zweitkanal hinzufügen",
|
|
|
|
|
removeSecondaryChannel: "Zweitkanal entfernen",
|
|
|
|
|
newSecondaryChannelPlaceholder: "Zweitkanal hinzufügen",
|
|
|
|
|
encryptionKey: "Schlüssel",
|
|
|
|
|
encryptionKeyPlaceholder: "1jg028ej40d",
|
|
|
|
|
showEncryptionKey: "Schlüssel anzeigen",
|
2024-07-08 03:01:24 +02:00
|
|
|
myName: "Mein Name",
|
2024-07-08 02:50:10 +02:00
|
|
|
yourNamePlaceholder: "Max Mustermann",
|
2024-07-09 00:28:07 +02:00
|
|
|
mailbox: "Briefkasten",
|
|
|
|
|
requestMailbox: "Aktivieren",
|
|
|
|
|
deleteMailbox: "Deaktivieren",
|
|
|
|
|
mailboxExplanation:
|
2024-07-09 02:31:22 +02:00
|
|
|
"Nachrichten werden temporär auf dem Server gespeichert, wenn deine Verbindung getrennt ist",
|
2024-07-08 02:50:10 +02:00
|
|
|
|
|
|
|
|
// messages
|
|
|
|
|
messages: "Nachrichten",
|
|
|
|
|
composerPlaceholder: "Neue Nachricht...",
|
|
|
|
|
sendMessage: "Senden",
|
|
|
|
|
clearHistory: "Nachrichtenverlauf leeren",
|
|
|
|
|
encryptionUnavailableTitle: "Verschlüsselung nicht möglich",
|
|
|
|
|
encryptionUnavailableMessage:
|
|
|
|
|
"Um Nachrichten zu verschlüsseln, lade diese Seite über HTTPS.",
|
2024-07-08 12:52:54 +02:00
|
|
|
|
|
|
|
|
decryptMessage: "Nachricht entschlüsseln",
|
|
|
|
|
copyMessage: "Nachricht kopieren",
|
|
|
|
|
deleteMessage: "Nachricht löschen",
|
2024-07-08 02:50:10 +02:00
|
|
|
},
|
2024-07-07 19:21:08 +02:00
|
|
|
};
|
|
|
|
|
|
2024-07-07 22:11:18 +02:00
|
|
|
const language = navigator.language.substring(0, 2);
|
|
|
|
|
export const translation: typeof englishTranslations =
|
|
|
|
|
allTranslations[language] ?? allTranslations.en;
|