mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00: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;
 | 
						|
};
 |