mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	refactor: style
This commit is contained in:
		
							parent
							
								
									43401210c3
								
							
						
					
					
						commit
						d85085d16f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -48,7 +48,7 @@ export class I18n<T extends ILocale> {
 | 
			
		|||
					}
 | 
			
		||||
 | 
			
		||||
					if (typeof value === 'string') {
 | 
			
		||||
						const parameters = Array.from(value.matchAll(/\{(\w+)\}/g)).map(([, parameter]) => parameter);
 | 
			
		||||
						const parameters = Array.from(value.matchAll(/\{(\w+)\}/g), ([, parameter]) => parameter);
 | 
			
		||||
 | 
			
		||||
						if (parameters.length) {
 | 
			
		||||
							console.error(`Missing locale parameters: ${parameters.join(', ')} at ${String(p)}`);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue