mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
[bug] chat language is now reactive
This commit is contained in:
parent
f4bf763701
commit
d73fd0cbb7
@ -114,20 +114,6 @@ export default {
|
|||||||
text: 'This is the action',
|
text: 'This is the action',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
textMessages: {
|
|
||||||
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: [
|
roomActions: [
|
||||||
/*
|
/*
|
||||||
{
|
{
|
||||||
@ -177,6 +163,22 @@ export default {
|
|||||||
// return this.theme === 'light' ? chatStyle.STYLE.light : chatStyle.STYLE.dark
|
// return this.theme === 'light' ? chatStyle.STYLE.light : chatStyle.STYLE.dark
|
||||||
return chatStyle.STYLE.light
|
return chatStyle.STYLE.light
|
||||||
},
|
},
|
||||||
|
textMessages() {
|
||||||
|
return{
|
||||||
|
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'),
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchMessages({ room, options = {} }) {
|
fetchMessages({ room, options = {} }) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user