forked from MapComplete/MapComplete
		
	Add language names to the language picker
This commit is contained in:
		
							parent
							
								
									793d765ead
								
							
						
					
					
						commit
						d8a0ca321b
					
				
					 7 changed files with 38404 additions and 12 deletions
				
			
		
							
								
								
									
										11
									
								
								Utils.ts
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								Utils.ts
									
										
									
									
									
								
							|  | @ -778,5 +778,16 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be | |||
|         } | ||||
|     } | ||||
|      | ||||
|      | ||||
|     public static MapToObj<T>(d : Map<string, T>, onValue: ((t:T) => any) = undefined): object{ | ||||
|         const o = {} | ||||
|         d.forEach((value, key) => { | ||||
|             if(onValue !== undefined){ | ||||
|                 value = onValue(value) | ||||
|             } | ||||
|             o[key] = value; | ||||
|         }) | ||||
|         return o | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue