1.2.7 • Published 3 years ago
vue-tawk-multiple-languages v1.2.7
This is for private use since the chat widgets links are hardcoded in the repo.
Feel free to fork, change the chat ID and publish your own npm.
vue-tawk
wrapper of tawk
This Vue plugin injects a tawk.io instance into all of your vue instances
Install
npm install vue-tawk-multiple-languages --save
or
yarn add vue-tawk-multiple-languages -D
Usage
Initialize
First you'll need to register the plugin
Second you should have an account at https://www.tawk.to/ with multiple chat widgets for different languages.
Then in your Nuxtjs project:
import Vue from 'vue'
import Tawk from 'vue-tawk-multiple-languages'
Vue.use(Tawk)
Set the visitor name and email
this.$Tawk.$updateChatUser(user)
the object of user should like that
{
name: 'user name',
email: 'user email',
hash: '' // see more https://www.tawk.to/javascript-api/#securemode
}
Set a generic attribute
this.$Tawk.$setAttribute(attribute)
the object of attribute should like that
{
key: 'value',
}
Ends the current ongoing chat.
this.$Tawk.$endChat()
1.2.7
3 years ago
1.2.6
3 years ago
1.2.5
3 years ago
1.2.4
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.0
3 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago
0.9.0
3 years ago
0.8.0
3 years ago
0.7.0
3 years ago
0.6.0
3 years ago
0.5.0
3 years ago
0.4.0
3 years ago
0.3.0
3 years ago
0.2.0
3 years ago
0.1.0
3 years ago