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-11 01:47:43 +02:00
|
|
|
save: "Save",
|
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-11 01:47:43 +02:00
|
|
|
discard: "Discard",
|
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:27:15 +02:00
|
|
|
yourName: "Your Name",
|
|
|
|
|
namePlaceholder: "Jane Doe",
|
|
|
|
|
|
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-11 17:16:01 +02:00
|
|
|
disconnect: "Disconnect",
|
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
|
|
|
|
2024-07-09 19:17:11 +02:00
|
|
|
primaryChannel: "Primary channel",
|
|
|
|
|
primaryChannelPlaceholder: "my-channel",
|
2024-07-09 15:15:17 +02:00
|
|
|
addChat: "Add",
|
2024-07-09 14:11:20 +02:00
|
|
|
|
2024-07-11 02:29:00 +02:00
|
|
|
// chat
|
2024-07-09 17:23:29 +02:00
|
|
|
showChatOptions: "show chat options",
|
|
|
|
|
configureChatTitle: "Configure Chat",
|
|
|
|
|
|
|
|
|
|
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",
|
2024-07-09 19:50:43 +02:00
|
|
|
showKey: "Show key",
|
2024-07-09 17:23:29 +02:00
|
|
|
|
2024-07-11 02:29:00 +02:00
|
|
|
clearObjects: "Delete all objects",
|
2024-07-09 18:23:35 +02:00
|
|
|
clearChatMessages: "Clear chat messages",
|
2024-07-11 02:29:00 +02:00
|
|
|
removeChat: "Remove chat",
|
2024-07-09 17:32:51 +02:00
|
|
|
|
2024-07-10 16:37:42 +02:00
|
|
|
messageInOutbox: "Pending",
|
|
|
|
|
|
2024-07-09 17:23:29 +02:00
|
|
|
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
|
|
|
|
2024-07-11 02:29:00 +02:00
|
|
|
// messages
|
2024-07-10 15:08:06 +02:00
|
|
|
resendMessage: "Resend message",
|
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-11 01:47:43 +02:00
|
|
|
|
|
|
|
|
// objects
|
2024-07-11 17:07:06 +02:00
|
|
|
showObjects: "show objects",
|
|
|
|
|
createObject: "create object",
|
|
|
|
|
untitledObject: "Untitled Object",
|
2024-07-11 01:47:43 +02:00
|
|
|
|
2024-07-11 18:54:56 +02:00
|
|
|
viewAll: "All",
|
|
|
|
|
viewNotes: "Notes",
|
|
|
|
|
|
|
|
|
|
noObjects: "No objects",
|
|
|
|
|
noNotes: "No notes",
|
|
|
|
|
|
2024-07-11 01:47:43 +02:00
|
|
|
objectTitle: "Object title",
|
|
|
|
|
objectTitlePlaceholder: "My object",
|
2024-07-11 15:08:25 +02:00
|
|
|
|
2024-07-11 14:03:15 +02:00
|
|
|
objectVersion: "Object version",
|
2024-07-11 15:08:25 +02:00
|
|
|
noteContent: "Note",
|
|
|
|
|
noteContentPlaceholder: "Take a note...",
|
2024-07-11 01:47:43 +02:00
|
|
|
|
2024-07-11 02:29:00 +02:00
|
|
|
resendObjects: "Resend all objects",
|
2024-07-11 01:47:43 +02:00
|
|
|
deleteObject: "Delete object",
|
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-09 19:17:11 +02:00
|
|
|
es: {
|
|
|
|
|
// general
|
|
|
|
|
set: "Guardar",
|
2024-07-11 17:16:01 +02:00
|
|
|
save: "Guardar",
|
2024-07-09 19:17:11 +02:00
|
|
|
back: "Atrás",
|
|
|
|
|
undoChanges: "Deshacer",
|
|
|
|
|
close: "Cerrar",
|
2024-07-11 17:16:01 +02:00
|
|
|
discard: "Descartar",
|
2024-07-09 19:17:11 +02:00
|
|
|
|
|
|
|
|
// overview
|
|
|
|
|
overview: "Resumen",
|
|
|
|
|
|
2024-07-11 17:16:01 +02:00
|
|
|
connection: "Conexión",
|
2024-07-09 19:17:11 +02:00
|
|
|
chats: "Chats",
|
|
|
|
|
|
|
|
|
|
yourName: "Tu nombre",
|
|
|
|
|
namePlaceholder: "Juan Pérez",
|
|
|
|
|
|
|
|
|
|
encryptionUnavailableTitle: "Cifrado no disponible",
|
|
|
|
|
encryptionUnavailableMessage:
|
|
|
|
|
"Obtén esta aplicación a traves de HTTPS o continúa sin cifrado",
|
|
|
|
|
|
2024-07-11 17:16:01 +02:00
|
|
|
serverAddress: "Dirección del servidor",
|
2024-07-09 19:17:11 +02:00
|
|
|
serverAddressPlaceholder: "wss://192.168.0.69:3000",
|
|
|
|
|
|
|
|
|
|
connectToServer: "Conectar",
|
|
|
|
|
disconnect: "Desconectar",
|
|
|
|
|
|
|
|
|
|
mailbox: "Buzón",
|
|
|
|
|
requestMailbox: "Activar",
|
|
|
|
|
deleteMailbox: "Desactivar",
|
|
|
|
|
mailboxExplanation:
|
|
|
|
|
"Si estás sin conexión, los mensajes se guardarán temporalmente en el servidor",
|
|
|
|
|
|
|
|
|
|
primaryChannel: "Canal principal",
|
|
|
|
|
primaryChannelPlaceholder: "mi-canal",
|
|
|
|
|
addChat: "Añadir",
|
|
|
|
|
|
2024-07-11 17:16:01 +02:00
|
|
|
// chat
|
2024-07-09 19:17:11 +02:00
|
|
|
showChatOptions: "Mostrar opciones del chat",
|
|
|
|
|
configureChatTitle: "Configurar chat",
|
|
|
|
|
|
2024-07-11 17:16:01 +02:00
|
|
|
secondaryChannel: "Canal secundario",
|
|
|
|
|
secondaryChannelPlaceholder: "Añadir canal secundario",
|
|
|
|
|
addSecondaryChannel: "Añadir canal secundario",
|
|
|
|
|
removeSecondaryChannel: "Eliminar canal secundario",
|
2024-07-09 19:17:11 +02:00
|
|
|
|
|
|
|
|
encryptionKey: "Clave de cifrado",
|
|
|
|
|
encryptionKeyPlaceholder: "n10d2482dg283hg",
|
2024-07-09 19:50:43 +02:00
|
|
|
showKey: "Mostrar clave",
|
2024-07-09 19:17:11 +02:00
|
|
|
|
2024-07-11 17:16:01 +02:00
|
|
|
clearObjects: "Eliminar todos los objetos",
|
|
|
|
|
clearChatMessages: "Eliminar todos los mensajes",
|
2024-07-09 19:17:11 +02:00
|
|
|
removeChat: "Eliminar chat",
|
|
|
|
|
|
2024-07-10 16:37:42 +02:00
|
|
|
messageInOutbox: "Pendiente",
|
|
|
|
|
|
2024-07-11 17:16:01 +02:00
|
|
|
noChatSelected: "Selecciona un chat",
|
|
|
|
|
|
2024-07-09 19:17:11 +02:00
|
|
|
composerPlaceholder: "Escribe un mensaje...",
|
|
|
|
|
sendMessage: "Enviar",
|
|
|
|
|
|
2024-07-11 17:16:01 +02:00
|
|
|
// messages
|
|
|
|
|
resendMessage: "Reenviar mensaje",
|
2024-07-09 19:17:11 +02:00
|
|
|
decryptMessage: "Descifrar mensaje",
|
|
|
|
|
copyMessage: "Copiar mensaje",
|
|
|
|
|
deleteMessage: "Eliminar este mensaje",
|
2024-07-11 17:16:01 +02:00
|
|
|
|
|
|
|
|
// objects
|
|
|
|
|
showObjects: "mostrar objetos",
|
|
|
|
|
createObject: "añadir nuevo objeto",
|
|
|
|
|
untitledObject: "Sin Título",
|
|
|
|
|
|
|
|
|
|
objectTitle: "Título",
|
|
|
|
|
objectTitlePlaceholder: "Mi objeto",
|
|
|
|
|
|
|
|
|
|
objectVersion: "Version del objeto",
|
|
|
|
|
noteContent: "Nota",
|
|
|
|
|
noteContentPlaceholder: "Toma nota...",
|
|
|
|
|
|
|
|
|
|
resendObjects: "Reenviar todos objetos",
|
|
|
|
|
deleteObject: "Eliminar objeto",
|
2024-07-09 19:17:11 +02:00
|
|
|
},
|
|
|
|
|
de: {
|
|
|
|
|
// general
|
|
|
|
|
set: "OK",
|
2024-07-11 17:16:01 +02:00
|
|
|
save: "Sichern",
|
2024-07-09 19:17:11 +02:00
|
|
|
back: "Zurück",
|
|
|
|
|
undoChanges: "Änderungen verwerfen",
|
|
|
|
|
close: "Schließen",
|
2024-07-11 17:16:01 +02:00
|
|
|
discard: "Verwerfen",
|
2024-07-09 19:17:11 +02:00
|
|
|
|
|
|
|
|
// overview
|
|
|
|
|
overview: "Übersicht",
|
|
|
|
|
|
|
|
|
|
connection: "Verbindung",
|
|
|
|
|
chats: "Chats",
|
|
|
|
|
|
|
|
|
|
yourName: "Dein Name",
|
|
|
|
|
namePlaceholder: "Max Mustermann",
|
|
|
|
|
|
|
|
|
|
encryptionUnavailableTitle: "Verschlüsselung nicht möglich",
|
|
|
|
|
encryptionUnavailableMessage:
|
|
|
|
|
"Lade diese app über HTTPS, um Nachrichten zu verschlüsseln",
|
|
|
|
|
|
|
|
|
|
serverAddress: "Serveradresse",
|
|
|
|
|
serverAddressPlaceholder: "wss://192.168.0.69:3000",
|
|
|
|
|
|
|
|
|
|
connectToServer: "Verbinden",
|
|
|
|
|
disconnect: "Trennen",
|
|
|
|
|
|
|
|
|
|
mailbox: "Briefkasten",
|
|
|
|
|
requestMailbox: "Aktivieren",
|
|
|
|
|
deleteMailbox: "Deaktivieren",
|
|
|
|
|
mailboxExplanation:
|
|
|
|
|
"Wenn du offline bist, werden Nachrichten auf dem Server gelagert",
|
|
|
|
|
|
|
|
|
|
primaryChannel: "Hauptkanal",
|
|
|
|
|
primaryChannelPlaceholder: "mein-kanal",
|
|
|
|
|
addChat: "Hinzufügen",
|
|
|
|
|
|
2024-07-11 17:16:01 +02:00
|
|
|
// chat
|
2024-07-09 19:17:11 +02:00
|
|
|
showChatOptions: "Chatoptionen einblenden",
|
|
|
|
|
configureChatTitle: "Chat konfigurieren",
|
|
|
|
|
|
|
|
|
|
secondaryChannel: "Zweitkanal",
|
|
|
|
|
secondaryChannelPlaceholder: "Zweitkanal hinzufügen",
|
|
|
|
|
addSecondaryChannel: "Zweitkanal hinzufügen",
|
|
|
|
|
removeSecondaryChannel: "Zweitkanal entfernen",
|
|
|
|
|
|
|
|
|
|
encryptionKey: "Schlüssel",
|
|
|
|
|
encryptionKeyPlaceholder: "n10d2482dg283hg",
|
2024-07-09 19:50:43 +02:00
|
|
|
showKey: "Schlüssel anzeigen",
|
2024-07-09 19:17:11 +02:00
|
|
|
|
2024-07-11 17:16:01 +02:00
|
|
|
clearObjects: "Alle Objekte löschen",
|
2024-07-09 19:17:11 +02:00
|
|
|
clearChatMessages: "Nachrichtenverlauf leeren",
|
2024-07-11 17:16:01 +02:00
|
|
|
removeChat: "Chat löschen",
|
2024-07-09 19:17:11 +02:00
|
|
|
|
2024-07-10 16:37:42 +02:00
|
|
|
messageInOutbox: "Ausstehend",
|
|
|
|
|
|
2024-07-11 17:16:01 +02:00
|
|
|
noChatSelected: "Kein Chat ausgewählt",
|
|
|
|
|
|
2024-07-09 19:17:11 +02:00
|
|
|
composerPlaceholder: "Neue Nachricht...",
|
|
|
|
|
sendMessage: "Senden",
|
|
|
|
|
|
2024-07-11 17:16:01 +02:00
|
|
|
// messages
|
2024-07-10 15:08:06 +02:00
|
|
|
resendMessage: "Erneut senden",
|
2024-07-09 19:17:11 +02:00
|
|
|
decryptMessage: "Nachricht entschlüsseln",
|
|
|
|
|
copyMessage: "Nachricht kopieren",
|
|
|
|
|
deleteMessage: "Nachricht löschen",
|
2024-07-11 17:16:01 +02:00
|
|
|
|
|
|
|
|
// objects
|
|
|
|
|
showObjects: "Objekte anzeigen",
|
|
|
|
|
createObject: "Neues Objekt erstellen",
|
|
|
|
|
untitledObject: "Unbenannt",
|
|
|
|
|
|
|
|
|
|
objectTitle: "Titel",
|
|
|
|
|
objectTitlePlaceholder: "Mein Objekt",
|
|
|
|
|
|
|
|
|
|
objectVersion: "Version des Objekts",
|
|
|
|
|
noteContent: "Notiz",
|
|
|
|
|
noteContentPlaceholder: "Notiz eingeben...",
|
|
|
|
|
|
|
|
|
|
resendObjects: "Objekte erneut senden",
|
|
|
|
|
deleteObject: "Objekt löschen",
|
2024-07-09 19:17:11 +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;
|