mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 12:37:56 +00:00
chore: Refactors widget to use i18n locale for articles (#7958)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
committed by
GitHub
parent
48bf8d08e5
commit
018c468303
@@ -111,7 +111,6 @@ export default {
|
||||
'setWidgetColor',
|
||||
'setBubbleVisibility',
|
||||
'setColorScheme',
|
||||
'setLocale',
|
||||
]),
|
||||
...mapActions('conversation', ['fetchOldConversations', 'setUserLastSeen']),
|
||||
...mapActions('campaign', [
|
||||
@@ -153,10 +152,8 @@ export default {
|
||||
|
||||
if (hasLocaleWithVariation) {
|
||||
this.$root.$i18n.locale = localeWithVariation;
|
||||
this.$store.dispatch('appConfig/setLocale', localeWithVariation);
|
||||
} else if (hasLocaleWithoutVariation) {
|
||||
this.$root.$i18n.locale = localeWithoutVariation;
|
||||
this.$store.dispatch('appConfig/setLocale', localeWithoutVariation);
|
||||
}
|
||||
},
|
||||
registerUnreadEvents() {
|
||||
|
||||
Reference in New Issue
Block a user