mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-25 21:09:04 +08:00
11 lines
240 B
JavaScript
11 lines
240 B
JavaScript
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;
|
|
};
|