mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-04 03:03:18 -05:00 
			
		
		
		
	
		
			
	
	
		
			11 lines
		
	
	
		
			170 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			170 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 
								 | 
							
								import type { Composer } from "vue-i18n";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								let i18n: Composer | null = null;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export function useGlobalI18n() {
							 | 
						||
| 
								 | 
							
								  if (!i18n) {
							 | 
						||
| 
								 | 
							
								    i18n = useI18n();
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								  return i18n;
							 | 
						||
| 
								 | 
							
								}
							 |