add translations
This commit is contained in:
+122
-6
@@ -8,7 +8,6 @@ const englishTranslations = {
|
||||
// overview
|
||||
overview: "Overview",
|
||||
|
||||
personal: "You",
|
||||
connection: "Connection",
|
||||
chats: "Chats",
|
||||
|
||||
@@ -31,16 +30,13 @@ const englishTranslations = {
|
||||
mailboxExplanation:
|
||||
"When you're disconnected, messages will be kept on the server temporarily",
|
||||
|
||||
newChatPrimaryChannel: "Primary channel",
|
||||
newChatNamePlaceholder: "my-channel",
|
||||
primaryChannel: "Primary channel",
|
||||
primaryChannelPlaceholder: "my-channel",
|
||||
addChat: "Add",
|
||||
|
||||
// messages
|
||||
showChatOptions: "show chat options",
|
||||
configureChatTitle: "Configure Chat",
|
||||
|
||||
primaryChannel: "Primary channel",
|
||||
primaryChannelPlaceholder: "my-channel",
|
||||
|
||||
secondaryChannel: "Secondary channel",
|
||||
secondaryChannelPlaceholder: "Add secondary channel",
|
||||
@@ -65,6 +61,126 @@ const englishTranslations = {
|
||||
|
||||
const allTranslations: { [key: string]: typeof englishTranslations } = {
|
||||
en: englishTranslations,
|
||||
es: {
|
||||
// general
|
||||
set: "Guardar",
|
||||
back: "Atrás",
|
||||
undoChanges: "Deshacer",
|
||||
close: "Cerrar",
|
||||
|
||||
// overview
|
||||
overview: "Resumen",
|
||||
|
||||
connection: "Conexion",
|
||||
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",
|
||||
|
||||
serverAddress: "Direccion del servidor",
|
||||
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",
|
||||
|
||||
// messages
|
||||
showChatOptions: "Mostrar opciones del chat",
|
||||
configureChatTitle: "Configurar chat",
|
||||
|
||||
secondaryChannel: "Canal segundario",
|
||||
secondaryChannelPlaceholder: "Añadir canal segundario",
|
||||
addSecondaryChannel: "Añadir canal segundario",
|
||||
removeSecondaryChannel: "Eliminar canal segundario",
|
||||
|
||||
encryptionKey: "Clave de cifrado",
|
||||
encryptionKeyPlaceholder: "n10d2482dg283hg",
|
||||
|
||||
removeChat: "Eliminar chat",
|
||||
clearChatMessages: "Eliminar todos mensajes",
|
||||
|
||||
noChatSelected: "Selecciona un chat",
|
||||
|
||||
composerPlaceholder: "Escribe un mensaje...",
|
||||
sendMessage: "Enviar",
|
||||
|
||||
decryptMessage: "Descifrar mensaje",
|
||||
copyMessage: "Copiar mensaje",
|
||||
deleteMessage: "Eliminar este mensaje",
|
||||
},
|
||||
de: {
|
||||
// general
|
||||
set: "OK",
|
||||
back: "Zurück",
|
||||
undoChanges: "Änderungen verwerfen",
|
||||
close: "Schließen",
|
||||
|
||||
// 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",
|
||||
|
||||
// messages
|
||||
showChatOptions: "Chatoptionen einblenden",
|
||||
configureChatTitle: "Chat konfigurieren",
|
||||
|
||||
secondaryChannel: "Zweitkanal",
|
||||
secondaryChannelPlaceholder: "Zweitkanal hinzufügen",
|
||||
addSecondaryChannel: "Zweitkanal hinzufügen",
|
||||
removeSecondaryChannel: "Zweitkanal entfernen",
|
||||
|
||||
encryptionKey: "Schlüssel",
|
||||
encryptionKeyPlaceholder: "n10d2482dg283hg",
|
||||
|
||||
removeChat: "Chat löschen",
|
||||
clearChatMessages: "Nachrichtenverlauf leeren",
|
||||
|
||||
noChatSelected: "Kein Chat ausgewählt",
|
||||
|
||||
composerPlaceholder: "Neue Nachricht...",
|
||||
sendMessage: "Senden",
|
||||
|
||||
decryptMessage: "Nachricht entschlüsseln",
|
||||
copyMessage: "Nachricht kopieren",
|
||||
deleteMessage: "Nachricht löschen",
|
||||
},
|
||||
};
|
||||
|
||||
const language = navigator.language.substring(0, 2);
|
||||
|
||||
Reference in New Issue
Block a user