[feature] added i18n for chat component

This commit is contained in:
Markus 2023-07-08 16:12:16 +02:00
parent 5d640c2da5
commit ee359309d9
3 changed files with 40 additions and 12 deletions

View File

@ -79,18 +79,18 @@ export default {
}, },
], ],
textMessages: { textMessages: {
ROOMS_EMPTY: 'Aucune conversation', ROOMS_EMPTY: this.$t('chat.roomsEmpty'),
ROOM_EMPTY: 'Aucune conversation sélectionnée', ROOM_EMPTY: this.$t('chat.roomEmpty'),
NEW_MESSAGES: 'Nouveaux messages', NEW_MESSAGES: this.$t('chat.newMessages'),
MESSAGE_DELETED: 'Ce message a été supprimé', MESSAGE_DELETED: this.$t('chat.messageDeleted'),
MESSAGES_EMPTY: 'Aucun message', MESSAGES_EMPTY: this.$t('chat.messagesEmpty'),
CONVERSATION_STARTED: 'La conversation a commencée le :', CONVERSATION_STARTED: this.$t('chat.conversationStarted'),
TYPE_MESSAGE: 'Tapez votre message', TYPE_MESSAGE: this.$t('chat.typeMessage'),
SEARCH: 'Rechercher', SEARCH: this.$t('chat.search'),
IS_ONLINE: 'est en ligne', IS_ONLINE: this.$t('chat.isOnline'),
LAST_SEEN: 'dernière connexion ', LAST_SEEN: this.$t('chat.lastSeen'),
IS_TYPING: 'est en train de taper...', IS_TYPING: this.$t('chat.isTyping'),
CANCEL_SELECT_MESSAGE: 'Annuler Sélection', CANCEL_SELECT_MESSAGE: this.$t('chat.cancelSelectMessage')
}, },
roomActions: [ roomActions: [
{ {

View File

@ -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": { "client-only": {
"loading": "Lade …" "loading": "Lade …"
}, },

View File

@ -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": { "client-only": {
"loading": "Loading …" "loading": "Loading …"
}, },