mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	tweak of 8e5e6f90cb
				
					
				
			This commit is contained in:
		
							parent
							
								
									8e5e6f90cb
								
							
						
					
					
						commit
						ba2630c615
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -63,7 +63,10 @@
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		// for https://github.com/misskey-dev/misskey/issues/10202
 | 
			
		||||
		if (lang == null || lang.toString == null || lang.toString() === 'null') lang = 'en-US';
 | 
			
		||||
		if (lang == null || lang.toString == null || lang.toString() === 'null') {
 | 
			
		||||
			console.error('invalid lang value detected!!!', typeof lang, lang);
 | 
			
		||||
			lang = 'en-US';
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		const localRes = await window.fetch(`/assets/locales/${lang}.${v}.json`);
 | 
			
		||||
		if (localRes.status === 200) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue