fix translations

This commit is contained in:
marlon-erler
2024-07-08 03:05:06 +02:00
parent b3a3c0ea4f
commit 9566c3d59b
2 changed files with 38 additions and 5 deletions
+36 -3
View File
@@ -373,7 +373,7 @@
encryptionKey: "Encryption key",
encryptionKeyPlaceholder: "1jg028ej40d",
showEncryptionKey: "Show encryption key",
yourName: "Your Name",
myName: "My Name",
yourNamePlaceholder: "Jane Doe",
// messages
messages: "Messages",
@@ -385,6 +385,39 @@
};
var allTranslations = {
en: englishTranslations,
es: {
// general
setInput: "OK",
connectionStatus: "Estado de Conexi\xF3n",
connectedTo: (server) => `Conectado a "${server}"`,
disconnected: "Desconectado",
// settings
settings: "Configuraci\xF3n",
connection: "Conexi\xF3n",
communication: "Comunicaci\xF3n",
encryption: "Cifrado",
serverAddress: "Direcci\xF3n del servidor",
serverAddressPlaceholder: "wss://192.168.0.69:3000",
connectToServer: "Conectar",
primaryChannel: "Canal principal",
leaveChannel: "Salir",
channelPlaceholder: "mi-canal",
addSecondaryChannel: "A\xF1adir canal segundario",
removeSecondaryChannel: "Eliminar canal segundario",
newSecondaryChannelPlaceholder: "A\xF1adir canal segundario",
encryptionKey: "Clave de cifrada",
encryptionKeyPlaceholder: "1jg028ej40d",
showEncryptionKey: "Mostrar clave de cifrado",
myName: "Mi nombre",
yourNamePlaceholder: "Juan P\xE9rez",
// messages
messages: "Mensajes",
composerPlaceholder: "Escribe un mensaje...",
sendMessage: "Enviar",
clearHistory: "Borrar historial",
encryptionUnavailableTitle: "Cifrado no disponible",
encryptionUnavailableMessage: "Obt\xE9n esta p\xE1gina a trav\xE9s de HTTPS para cifrar o contin\xFAa sin cifrado"
},
de: {
// general
setInput: "OK",
@@ -408,7 +441,7 @@
encryptionKey: "Schl\xFCssel",
encryptionKeyPlaceholder: "1jg028ej40d",
showEncryptionKey: "Schl\xFCssel anzeigen",
yourName: "Mein Name",
myName: "Mein Name",
yourNamePlaceholder: "Max Mustermann",
// messages
messages: "Nachrichten",
@@ -645,7 +678,7 @@
)));
};
function CommunicationSection() {
return /* @__PURE__ */ createElement("div", null, /* @__PURE__ */ createElement("h2", null, translation.communication), /* @__PURE__ */ createElement("label", { class: "tile" }, /* @__PURE__ */ createElement("span", { class: "icon" }, "account_circle"), /* @__PURE__ */ createElement("div", null, /* @__PURE__ */ createElement("span", null, translation.yourName), /* @__PURE__ */ createElement(
return /* @__PURE__ */ createElement("div", null, /* @__PURE__ */ createElement("h2", null, translation.communication), /* @__PURE__ */ createElement("label", { class: "tile" }, /* @__PURE__ */ createElement("span", { class: "icon" }, "account_circle"), /* @__PURE__ */ createElement("div", null, /* @__PURE__ */ createElement("span", null, translation.myName), /* @__PURE__ */ createElement(
"input",
{
"bind:value": senderName,
+2 -2
View File
@@ -69,9 +69,9 @@ const allTranslations: { [key: string]: typeof englishTranslations } = {
composerPlaceholder: "Escribe un mensaje...",
sendMessage: "Enviar",
clearHistory: "Borrar historial",
encryptionUnavailableTitle: "Cifrada no disponible",
encryptionUnavailableTitle: "Cifrado no disponible",
encryptionUnavailableMessage:
"Obtén esta página por HTTPS para cifrar mensajes o continúa sin cifrado",
"Obtén esta página a través de HTTPS para cifrar o continúa sin cifrado",
},
de: {
// general