[Vuejs]-Integrate vue-i18n in vue-beautiful-chat

0👍

Are you possible missing the "this" when referring to "$t" on the computed property?

computed: {
    chatWindowTitle() {
      if (this.title !== '') {
        return this.title
      }
      if (this.participants.length === 0) {
        return this.$t('participant.you_only')
      } else if (this.participants.length > 1) {
        return this.$t('participant.you_and_participants', { participant: 'this.participants[0].name' })
      } else {
        return 'You & ' + this.participants[0].name
      }
    }
  },

Leave a comment