Chore: Send browser language in webwidget events (#952)
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
co-authored by
Pranav Raj Sreepuram
parent
ed1c871633
commit
f9e8bb8e10
@@ -0,0 +1,10 @@
|
||||
import Vue from 'vue';
|
||||
export const buildSearchParamsWithLocale = search => {
|
||||
const locale = Vue.config.lang;
|
||||
if (search) {
|
||||
search = `${search}&locale=${locale}`;
|
||||
} else {
|
||||
search = `?locale=${locale}`;
|
||||
}
|
||||
return search;
|
||||
};
|
||||
Reference in New Issue
Block a user