From ee359309d9e04f7bade9bde24cc57314aa9a90ef Mon Sep 17 00:00:00 2001 From: Markus Date: Sat, 8 Jul 2023 16:12:16 +0200 Subject: [PATCH] [feature] added i18n for chat component --- webapp/components/Chat/Chat.vue | 24 ++++++++++++------------ webapp/locales/de.json | 14 ++++++++++++++ webapp/locales/en.json | 14 ++++++++++++++ 3 files changed, 40 insertions(+), 12 deletions(-) diff --git a/webapp/components/Chat/Chat.vue b/webapp/components/Chat/Chat.vue index c2b02c0af..5bdac4768 100644 --- a/webapp/components/Chat/Chat.vue +++ b/webapp/components/Chat/Chat.vue @@ -79,18 +79,18 @@ export default { }, ], textMessages: { - ROOMS_EMPTY: 'Aucune conversation', - ROOM_EMPTY: 'Aucune conversation sélectionnée', - NEW_MESSAGES: 'Nouveaux messages', - MESSAGE_DELETED: 'Ce message a été supprimé', - MESSAGES_EMPTY: 'Aucun message', - CONVERSATION_STARTED: 'La conversation a commencée le :', - TYPE_MESSAGE: 'Tapez votre message', - SEARCH: 'Rechercher', - IS_ONLINE: 'est en ligne', - LAST_SEEN: 'dernière connexion ', - IS_TYPING: 'est en train de taper...', - CANCEL_SELECT_MESSAGE: 'Annuler Sélection', + ROOMS_EMPTY: this.$t('chat.roomsEmpty'), + ROOM_EMPTY: this.$t('chat.roomEmpty'), + NEW_MESSAGES: this.$t('chat.newMessages'), + MESSAGE_DELETED: this.$t('chat.messageDeleted'), + MESSAGES_EMPTY: this.$t('chat.messagesEmpty'), + CONVERSATION_STARTED: this.$t('chat.conversationStarted'), + TYPE_MESSAGE: this.$t('chat.typeMessage'), + SEARCH: this.$t('chat.search'), + IS_ONLINE: this.$t('chat.isOnline'), + LAST_SEEN: this.$t('chat.lastSeen'), + IS_TYPING: this.$t('chat.isTyping'), + CANCEL_SELECT_MESSAGE: this.$t('chat.cancelSelectMessage') }, roomActions: [ { diff --git a/webapp/locales/de.json b/webapp/locales/de.json index febb8898c..c482cfff9 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -77,6 +77,20 @@ } } }, + "chat": { + "roomsEmpty" : "Keine Räume", + "roomEmpty" : "Keinen Raum selektiert", + "newMessages" : "Neue Nachrichten", + "messageDeleted": "Diese Nachricht wuerde gelöscht", + "messagesEmpty": "Keine Nachrichten", + "conversationStarted": "Unterhaltung startete am:", + "typeMessage": "Nachricht schreiben", + "search": "Suche", + "isOnline": "online", + "lastSeen": "zuletzt gesehen ", + "isTyping": "tippt...", + "cancelSelectMessage": "Abbrechen" + }, "client-only": { "loading": "Lade …" }, diff --git a/webapp/locales/en.json b/webapp/locales/en.json index c0fb5c2f6..0e71a2f4f 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -77,6 +77,20 @@ } } }, + "chat": { + "roomsEmpty" : "No rooms", + "roomEmpty" : "No room selected", + "newMessages" : "New Messages", + "messageDeleted": "This message was deleted", + "messagesEmpty": "No messages", + "conversationStarted": "Conversation started on:", + "typeMessage": "Type message", + "search": "Search", + "isOnline": "is online", + "lastSeen": "last seen ", + "isTyping": "is writing...", + "cancelSelectMessage": "Cancel" + }, "client-only": { "loading": "Loading …" },