File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -291,12 +291,17 @@ module.exports = async function file(
291291				Array . isArray ( directory . languages )  && 
292292				! object . translations 
293293			)  { 
294- 				// Call your AI translation service 
295- 				const  translations  =  await  options . translate ( 
296- 					source , 
297- 					directory . languages 
298- 				) ; 
299- 				newObject . object . translations  =  translations ; 
294+ 				try  { 
295+ 					// Call your AI translation service 
296+ 					const  translations  =  await  options . translate ( 
297+ 						source , 
298+ 						directory . languages 
299+ 					) ; 
300+ 					newObject . object . translations  =  translations ; 
301+ 				}  catch  ( err )  { 
302+ 					console . error ( "Translation error:" ,  err ) ; 
303+ 					// Continue without translations 
304+ 				} 
300305			} 
301306
302307			if  ( directory . storage )  newObject . storage  =  directory . storage ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments